1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/FastAPI_ynh.git synced 2024-09-03 18:36:00 +02:00

Update nginx.conf

This commit is contained in:
Éric Gaspar 2023-12-15 20:44:19 +01:00
parent 85d5c941da
commit 5235913731

View file

@ -23,7 +23,7 @@ location __PATH__/ {
} }
if ($request_method = (POST|GET)$) { if ($request_method = (POST|GET)$) {
more_set_headers "Access-Control-Allow-Origin: * always"; more_set_headers "Access-Control-Allow-Origin: * always";
more_set_headers "Access-Control-Allow-Methods: GET, POST, OPTIONS' always"; more_set_headers "Access-Control-Allow-Methods: GET, POST, OPTIONS always";
more_set_headers "Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range always"; more_set_headers "Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range always";
more_set_headers "Access-Control-Expose-Headers: Content-Length,Content-Range always"; more_set_headers "Access-Control-Expose-Headers: Content-Length,Content-Range always";
} }