Changing X-Frame parameters to IFRAME via Node.JS?

Can I change response headers for IFRAMEs in Node.JS?

Do you need to create a proxy first? (Something similar to this? Http://www.bennadel.com/blog/2179-Extending-EventEmitter-In-Order-To-Create-A-Response-Proxy-In-Node-js.htm )

Basically I want to show the mobile version of Gmail in IFRAME.

+4
source share
1 answer

In general, yes, you should proxy it. However, in this particular case, this may not even work - Google seems to have deployed additional countermeasures to block login through the proxy. (If you proxy the request, you can see the password of users, read their email, etc.)

If you only need to read your own email address, you have an alternative: https: // USERNAME: PASSWORD@gmail.google.com / gmail / feed / atom will give you the RSS feed of the latest emails. It also has an x-frame-options: SAMEORIGIN , but you can proxy it through node.

+2
source

All Articles