spring security 解决 IFrame出Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'DENY'
在protected void configure(HttpSecurity http)方法中添加and().headers().frameOptions().sameOrigin()
本文介绍如何在SpringSecurity配置中解决IFrame加载时出现的'X-Frame-Options'to'DENY'错误。通过在configure(HttpSecurity http)方法中添加headers().frameOptions().sameOrigin(),实现允许同源IFrame加载。
spring security 解决 IFrame出Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'DENY'
在protected void configure(HttpSecurity http)方法中添加and().headers().frameOptions().sameOrigin()
1万+
2万+
1043
662
3336
3万+

被折叠的 条评论
为什么被折叠?