- Code: Select all
CefBrowserSettings sett;
sett.universal_access_from_file_urls = STATE_ENABLED;
sett.file_access_from_file_urls = STATE_ENABLED;
However, X-Frame-Options header is still enforced.
Trying to display such page on iframe, that is in local file, give me following error:
- Code: Select all
"Refused to display 'https://www.google.pl/?' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.", source: about:blank (0)
I think with universal_access_from_file_urls option, X-Frame-Options header should not be enforced.