iframe sends origin as null

こ雲淡風輕ζ 提交于 2019-12-24 03:34:27

问题


I have an iframe to which the content is injected from the third party library I am using.

<iframe id="targetIframe"></iframe>

The library is injecting a form which user needs to submit. Problem is that when the form is initialized they are doing some requests and header origin is send as a null which is causing a problem because their servers are not allowing null value.

I tried to add sandbox attribute, even tried to fake the call but with origin but the iframe is secured with CORS.

Is there any way to overcome this or it should be the third party library developers responsibility?

This is a request which is being returned as http 302 and I have read that browsers are always sending origin: null for 302. Is that right?

来源:https://stackoverflow.com/questions/53549369/iframe-sends-origin-as-null

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!