iframe - Tampermonkey 添加 iframe 问题 - 对服务器的请求已被扩展程序阻止
问题描述
我想在特定的 URL 上添加 iframe,一切正常,但未加载 iframe 内容。在 iframe 中,我看到消息“对服务器的请求已被扩展程序阻止”。
我禁用了所有其他扩展(除了 Tampermonkey)。显然,Tampemonkey 出于某种原因阻止了这种行为。知道怎么做吗?
在 JS 控制台中,我看到:
chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/:1 Refused to frame
'https://xyz123.com/' because it violates the following Content Security
Policy directive: "child-src 'self' docs.google.com fast.wistia.net
js.stripe.com platform.twitter.com player.vimeo.com staticxx.facebook.com
www.facebook.com web.facebook.com www.youtube.com". Note that 'frame-src' was
not explicitly set, so 'child-src' is used as a fallback.
解决方案
推荐阅读
- powershell - 使用 wgrib2 将 grib2 转换为 netcdf:批量问题
- r - R中滞后的单列移位值
- c++ - 如何在没有错误的情况下获取朋友类的模板函数
- r - 无法编译包“地图”
- r - 使用 case_when 进行字符串匹配的多种模式
- sql - SQL 语法;检查与您的 MariaDB 服务器版本相对应的手册,以了解要使用的正确语法
- javascript - 为什么我的 ajax 一直跳入错误函数?
- c# - ASP.NET Core 3.0 中的 JsonOutputFormatter
- docker - Gcloud 返回问号而不是其他语言的符号
- javascript - 我有一个数据,想将所有元素映射到其他元素