Hello!
Looks like my question is a little bit silly, but I'll still try to ask.
I've airflow behind nginx, with follow config:
upstream airflowup {
> server 127.0.0.1:8123;
> }
> server {
> listen 1xx.xxx.xxx.xxx:80;
> server_name airflow.x.y;
> location / {
> gzip off;
> proxy_read_timeout 300;
> proxy_connect_timeout 300;
> proxy_redirect off;
> proxy_set_header X-Forwarded-Proto $scheme;
> proxy_set_header Host $http_host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Frame-Options SAMEORIGIN;
> add_header "Access-Control-Allow-Origin" "*";
> add_header "Access-Control-Allow-Credentials" "true";
> add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS";
> add_header "Access-Control-Allow-Headers" "Authorization,
> origin, accept";
> proxy_set_header X-Forwarded-Ssl off;
> proxy_pass http://airflowup;
> }
> }
The GET requests is ok, but when airflow GUI does POST, I've got the follow
error
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
> <title>400 Bad Request</title>
> <h1>Bad Request</h1>
> <p>CSRF token missing or incorrect.</p>
Could someone help me please?
--
Петровский Александр / Alexander Petrovsky,
Skype: askjuise
Phone: +7 914 8 820 815