Created
July 27, 2021 08:52
-
-
Save ChrisMcKee/f0816222acf0692526d01a7e82b6651d to your computer and use it in GitHub Desktop.
CORS for Credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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