CORS Origin Spring Boot Jhipster-飞行前失败

CORS Origin Spring Boot Jhipster-飞行前失败,第1张

CORS Origin Spring Boot Jhipster-飞行前失败

看起来像是default

SecurityConfiguration
,它不会跳过OPTIONS的安全检查

尝试将以下内容添加

antMatcher
到中的
protected void configure(HttpSecurityhttp)
方法
SecurityConfiguration.java

.antMatchers(org.springframework.http.HttpMethod.OPTIONS, "/api/**").permitAll()


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5641588.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存