Skip to content

Instantly share code, notes, and snippets.

@ChrisMcKee
Created July 27, 2021 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisMcKee/f0816222acf0692526d01a7e82b6651d to your computer and use it in GitHub Desktop.
Save ChrisMcKee/f0816222acf0692526d01a7e82b6651d to your computer and use it in GitHub Desktop.
CORS for Credentials
if ($http_origin = ''){
set $http_origin "*";
}
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin $http_origin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment