ui - add CORS to wizard check endpoint
This commit is contained in:
parent
1e52dd9fb7
commit
43c288046a
|
@ -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 +%}
|
Loading…
Reference in New Issue