github.com/TaceyWong/ctools@v0.1.1-0.20201221084458-4d7a8190b2ac/x.py (about)

     1  location / {  
     2      add_header Access-Control-Allow-Origin *;
     3      add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
     4      add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
     5  
     6      if ($request_method = 'OPTIONS') {
     7          return 204;
     8      }
     9  }