From 377a154da09a924558a339dcd36d098a47104667 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 19 Jan 2022 18:07:24 +0100 Subject: [PATCH] enable cors on /logout endpoint --- docker/nginx/conf.d/server/server.account | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/nginx/conf.d/server/server.account b/docker/nginx/conf.d/server/server.account index 2fb5551d..e61ccbab 100644 --- a/docker/nginx/conf.d/server/server.account +++ b/docker/nginx/conf.d/server/server.account @@ -42,3 +42,10 @@ location /api/login { rewrite /api/(.*) /$1 break; proxy_pass http://accounts:3000; } + +location /api/logout { + include /etc/nginx/conf.d/include/cors; + + rewrite /api/(.*) /$1 break; + proxy_pass http://accounts:3000; +}