injecting external js into self created iframe

前端 未结 2 945
遇见更好的自我
遇见更好的自我 2021-01-25 12:59

So i am trying to inject and external css and js into a self created iframe to provide an extra security layer, there therefore is no cross domain issues.

here is the co

2条回答
  •  鱼传尺愫
    2021-01-25 13:34

    As long as the iframe domain, protocol, and port matches you can add scripts. Otherwise, it is treated as an unsafe attempt to access a different url.

提交回复
热议问题