ui - add CORS to wizard check endpoint

This commit is contained in:
fl0ppy-d1sk 2023-11-28 17:15:27 +01:00
parent 1e52dd9fb7
commit 43c288046a
No known key found for this signature in database
GPG Key ID: 93EE47CC3D061500
1 changed files with 5 additions and 0 deletions

View File

@ -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 +%}