簡體   English   中英

任何允許chrome:// history-frame加載到iframe中的方法

[英]Any way to allow chrome://history-frame to load in an iframe

我正在嘗試將chrome:// history-frame加載到我的擴展程序頁面的iframe中,但它給出了:

XMLHttpRequest cannot load chrome://history-frame/. Cross origin requests are only supported for HTTP. 

我嘗試將網址添加到manifest.json中的權限元素中,並將其添加為:

"content_security_policy": "script-src 'self' chrome://history-frame; object-src 'self'"

有人對我如何將其加載到iframe中有任何想法嗎?

擴展程序不允許在iframe中使用chrome://方案加載來源( 也不允許在CSP中將此類來源列入白名單)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM