alternates to --disable-websecurity on iframes

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

alternates to --disable-websecurity on iframes

Postby zreo15 » Thu Jun 25, 2015 7:48 am

Well i need to display some websites on iframe but due to cross origin policy i couldnt but a way to get over that limitation is disabling websecurity which i dont want to do plus some website like google and twittrer force themselves on parent window or dont load properly or dont aloow navigation so as again a way over that i found was in nw.js where they have mini browser in iframe and this feature nwfaketop which is used to trap the navigation and the access (such as window.top, window.parent) in this iframe is what i need but instead of using nw.js to develope my app i would really prefer to use cef3 because of its small binaries and i really dont have any use of node.js in my app so i was wondering if that faketop feature can be implimented in cef3 in some way or I have to make it a feature request
zreo15
Newbie
 
Posts: 6
Joined: Mon Jun 08, 2015 3:21 pm

Re: alternates to --disable-websecurity on iframes

Postby amaitland » Thu Jun 25, 2015 5:43 pm

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: alternates to --disable-websecurity on iframes

Postby zreo15 » Fri Jun 26, 2015 3:38 am

ya well problem with this method is if u access twitter google and other such sites when they are displayed in iframe they notice it and either dont display or try to take over parent frame which is why i needed those nwfaketop functions they prenvent this from happening plus i want to stop them executing scripts to parent but parent should be able to execute on child frames.
Making an exception is not a option for me since m trying to acess whole web using iframes so i cant just keep on adding each site manually ......
zreo15
Newbie
 
Posts: 6
Joined: Mon Jun 08, 2015 3:21 pm

Re: alternates to --disable-websecurity on iframes

Postby Czarek » Sat Jun 27, 2015 10:47 am

Not sure if this will work in your case, but in CEF you can modify response* headers and thus can change some security restrictions.

*edited
Last edited by Czarek on Sat Jun 27, 2015 3:22 pm, edited 1 time in total.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: alternates to --disable-websecurity on iframes

Postby zreo15 » Sat Jun 27, 2015 2:09 pm

can u explain how to make it work with iframes m not really sure just what kind of http headers are sent when calls are made from iframes and just what changes maybe needed
zreo15
Newbie
 
Posts: 6
Joined: Mon Jun 08, 2015 3:21 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 95 guests