kellyseeme commented on issue #7735:
URL: https://github.com/apache/apisix/issues/7735#issuecomment-1307101083

   @believe1499  hello,你实现了你发的配置了么?咋实现的。
   `if ($request_method = 'OPTIONS') {
   add_header 'Access-Control-Allow-Origin' '' always;
   add_header 'Access-Control-Allow-Headers' 
'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
   add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
   add_header 'Access-Control-Max-Age' 1728000;
   add_header 'Content-Type' 'text/plain charset=UTF-8';
   add_header 'Content-Length' 0;
   return 204;
   }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to