From 43c288046a0fac2b9c54f09ca6cb6f2dfbb073fa Mon Sep 17 00:00:00 2001 From: fl0ppy-d1sk Date: Tue, 28 Nov 2023 17:15:27 +0100 Subject: [PATCH] ui - add CORS to wizard check endpoint --- src/common/core/ui/confs/default-server-http/ui.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/core/ui/confs/default-server-http/ui.conf b/src/common/core/ui/confs/default-server-http/ui.conf index 0007921f..9ff50b81 100644 --- a/src/common/core/ui/confs/default-server-http/ui.conf +++ b/src/common/core/ui/confs/default-server-http/ui.conf @@ -20,9 +20,14 @@ location /setup { } location /setup/check { + add_header 'Access-Control-Allow-Origin' '*' always; + add_header 'Access-Control-Allow-Methods' 'GET' always; + add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always; + add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; default_type 'text/plain'; content_by_lua_block { ngx.say("ok") } } + {% endif +%} \ No newline at end of file