click2install
click2install

Reputation: 998

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

I am trying to load chrome://history-frame into an iframe in my extensions page but it is giving:

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

I have tried adding the url to the permissions element in manifest.json as well as adding it as:

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

Does anyone have any ideas on how I can load this into an iframe?

Upvotes: 2

Views: 1216

Answers (1)

gkalpak
gkalpak

Reputation: 48211

Extensions are not allowed to load origins with the chrome:// scheme in an iframe (nor is it allowed to white-list such origins in the CSP).

Upvotes: 1

Related Questions