##错误场景 http使用https下资源时,出现CORS错误 查看Header之后发现没有Access-Control-Allow-Origin   于是在nginx中location段添加配置 ```conf add_header 'Access-Control-Allow-Origin' '*'; add_header Access-Control-Allow-Headers X-Requested-With; ``` 问题解决 Last modification:October 29, 2021 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 If you think my article is useful to you, please feel free to appreciate
One comment
建议在开头增加背景铺垫,增强读者代入感。