Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to get Chromium browser to load "file:" URLs. The error message I get says:

Unsafe attempt to load URL file:///home/pi.vtt from a frame with the URL file:///home/index.html. "File:" URLs are treated as unique security origins.

Also, only somewhat relatedly, is there a way to have Chromium browser launch a specific, custom URL when a page crashes, giving something other than the "Aw, snap!" message?

What I have tried:

The potential solutions I've considered involve either a policy change (but what and where?) or using flags when I open chromium-browser in the Raspbian OS terminal. I tried using --disable-web-security, but this throws a banner popup across the top of the browser's viewport that warns, "You are using an unsupported command line flag: --disable-web-security. Stability and security will suffer." Can anyone suggest a way to either not get this message or to turn off the alert after it appears? I've even considered some inelegant solutions, such as fiddling with the Raspberry Pi's overscan to make the banner invisible to users, but those kludgy fixes aren't really workable.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900