spring boot项目中页面报错 Refused to display in a frame because it set ‘X-Frame-Options‘ to ‘DENY‘
1. 背景在springboot项目中前后端建立websocket连接,页面会报错!!!2.异常信息这个会导致使用iframe模式上传图片或者iframe嵌套页面时,会报如下异常信息:Refused to display in a frame because it set ‘X-Frame-Options’ to ‘DENY’3. 解决方法拓展WebSecurityConfigurerAdapter的配置public class SecurityConfig extends WebSecu
原创
2020-09-08 09:46:52 ·
1060 阅读 ·
0 评论