Reputation: 998
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
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