mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #19540 from overleaf:bg-fix-nginx-clsi-config-in-dev-env
synchonise clsi nginx.conf in dev env with production nginx proxy.conf GitOrigin-RevId: 986c32d7d7d7dbd5245555c3db9b779298465762
This commit is contained in:
parent
fca6c952f8
commit
1a64d37fde
1 changed files with 1 additions and 2 deletions
|
@ -86,9 +86,8 @@ server {
|
|||
location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/content/([0-9a-f-]+/[0-9a-f]+)$ {
|
||||
if ($request_method = 'OPTIONS') {
|
||||
# handle OPTIONS method for CORS requests
|
||||
add_header 'Content-Type' 'text/plain charset=UTF-8';
|
||||
add_header 'Allow' 'GET,HEAD';
|
||||
return 200 'GET,HEAD';
|
||||
return 204;
|
||||
}
|
||||
# Cache for one day
|
||||
expires 1d;
|
||||
|
|
Loading…
Reference in a new issue