Spring Security 解决X-Frame-Options deny
错误信息:
Refused to display 'https://github.com/hwclass/awesome-sound' in a frame because it set 'X-Frame-Options' to 'deny
解决方法
在配置中添加:
http
.headers()
.frameOptions().sameOrigin()
.httpStrictTransportSecurity().disable()
点击查看mozilla文档
浙公网安备 33010602011771号