Skip to content

Instantly share code, notes, and snippets.

@amelotrgr
amelotrgr / nginx.txt
Created Oct 8, 2019
Wide-open CORS config for nginx - v2
View nginx.txt
location / {
# try_files $uri $uri/ /index.php?$args;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*' always;
#
# Om nom nom cookies
#