Skip to content

Instantly share code, notes, and snippets.

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