【转】web错误代码ERR_BLOCKED_BY_RESPONSE

转:https://blog.csdn.net/rekey367/article/details/105271998/

net::ERR_BLOCKED_BY_RESPONSE
由于web服务不允许 iframe 引用,需要在 web服务中设置 X-Frame-Options
HttpServletResponse response.setHeader(“x-frame-options”, “DENY”);
设置有3种参数
DENY
表示该页面不允许在 frame 中展示,即便是在相同域名的页面中嵌套也不允许。
SAMEORIGIN
表示该页面可以在相同域名页面的 frame 中展示。
ALLOW-FROM
表示该页面可以在指定来源的 frame 中展示,多个允许源空格隔开(未验证)
HttpServletResponse response.setHeader(“x-frame-options”, “ALLOW-FROM http://xxx http://yyy”);

原文地址:https://www.cnblogs.com/guxingzhe/p/15105147.html