1
0

graphql.conf 918 B

1234567891011121314151617181920
  1. real_ip_header X-Forwarded-For;
  2. real_ip_recursive on;
  3. proxy_set_header Host $host;
  4. proxy_set_header X-Forwarded-Proto https;
  5. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  6. if ($request_method = 'OPTIONS') {
  7. add_header 'Access-Control-Allow-Origin' '*';
  8. add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
  9. add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
  10. add_header 'Access-Control-Max-Age' 1728000;
  11. add_header 'Content-Type' 'text/plain; charset=utf-8';
  12. add_header 'Content-Length' 0;
  13. return 204;
  14. }
  15. add_header 'Access-Control-Allow-Origin' '*';
  16. add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
  17. add_header 'Access-Control-Allow-Headers' 'User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
  18. add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';