nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.38k stars 3.88k forks source link

Facebook/VK displaying in iframe #5619

Closed monobogdan closed 7 years ago

monobogdan commented 7 years ago

Facebook and VK not loading in iframe. VK: blink and whitescreen Facebook: Offer to go to facebook.com Screenshots: https://imgur.com/a/MHESC

CosmoMyzrailGorynych commented 7 years ago

Информативно — трындец. Ты бы хоть код добавил.

This is because facebook and VK have some basic protection against simple embeds of their main pages. Facebook tries to change his top location (nw) to Facebook to avoid XSS attacks, simple bots, etc. Actually, FB and VK try to attack you instead and FB easily gets access to parent window.

fghj

Use webview and live in happiness. Otherwise, use special attributes for unsafe frames.

adsasd

monobogdan commented 7 years ago

webview can't handle newwindow

rogerwang commented 7 years ago

Does nwfaketop iframe work for you?

On Wed, Jan 11, 2017, 5:31 AM Bogdan Nikolaev notifications@github.com wrote:

webview can't handle newwindow 👍

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nwjs/nw.js/issues/5619#issuecomment-271704053, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKGGUjhlgjNpseTh5oxmViHagF_fmo-ks5rQ_iZgaJpZM4LeHnd .

monobogdan commented 7 years ago

yes, but both iframe and webview can't handle newwindow

rogerwang commented 7 years ago

Cloud you give more details and how would you like it to be handled?

On Thu, Jan 12, 2017, 4:20 PM Bogdan Nikolaev notifications@github.com wrote:

yes, but both iframe and webview can't handle newwindow

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/nwjs/nw.js/issues/5619#issuecomment-272101755, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKGGXxO8WUVX9friQ34Ghb2b2eu1Pmfks5rReJPgaJpZM4LeHnd .

rogerwang commented 7 years ago

close until more information is provided.