且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何配置tomcat不对CORS OPTIONS请求执行身份验证或授权

更新时间:2023-02-17 10:00:02

也许

Maybe this answer can help. In short:

<security-constraint>
    <web-resource-collection>
        <url-pattern>/*</url-pattern>
        <http-method>OPTIONS</http-method>
    </web-resource-collection>
    <!-- no auth-constraint here -->
</security-constraint>