javascript - Setting headers from main page to an iframe -


is possible somehow, using javascript or other methods, set http request headers in iframe?

basically, need embed external website existing webpage using iframe. both pages authenticated using same domain, , trying avoid forcing user login twice. both parent webpage , external website running https, , both accept basic authentication header login methods. so, thinking if there way take header main page, , pass on iframe?

the main webpage allows me basic authentication header using javascript, don't need header parent request, need able inject header iframe before loading it.

you not allowed modify content of other sites through iframe because of same-origin policy. better option use ajax load pages , display them user without using iframe.

more resources:


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -