首页 > 解决方案 > 设置 Access-Control-Allow-Headers: *(如果有)的安全含义是什么?

问题描述

对于我的 Web 应用程序,有时会出现类似 的错误Request header field Pragma is not allowed by Access-Control-Allow-Headers in preflight response,我可以通过Access-Control-Allow-Headers: *在服务器端进行配置来解决。

这样做有什么安全隐患吗?

标签: javascriptsecurityweb-applicationscors

解决方案


推荐阅读