goose icon indicating copy to clipboard operation
goose copied to clipboard

Request origin does not match request base_url

Open blackstorm opened this issue 3 years ago • 1 comments

https://github.com/rails/rails/issues/22965

blackstorm avatar Jan 10 '23 13:01 blackstorm

Nginx example

server {
    listen       80;
    server_name example.com;

    location / {
      proxy_pass        http://127.0.0.1:3000;
      proxy_set_header  Host $host;
      proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header  X-Forwarded-Proto $scheme;
      proxy_set_header  X-Forwarded-Ssl on;
      proxy_set_header  X-Forwarded-Port $server_port;
      proxy_set_header  X-Forwarded-Host $host;
    }
}

blackstorm avatar Jan 10 '23 13:01 blackstorm