Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to configure nginx site with cors and proxy_pass

Nginx config

server {
    listen 80;
    add_header 'Access-Control-Allow-Credentials' 'true';
    location /  {

consideration: nots neccesary add "Access-Control-Allow-Origin" "*" and 204 Option if app have a cors activate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment