nginx 处理HTTP CODE非200的跨域请求

2019-06-26  本文已影响0人  坠入莱茵河

https://coderwall.com/p/wprykg/cors-with-nginx-for-401-404-501-and-any-other-http-status

nginx默认不会给HTTP Code非200的请求上加'Access-Control-Allow-Origin' * 之类的header头
需要在后面增加always标识符

上一篇 下一篇

猜你喜欢

热点阅读