Cross sub domain iframes and JavaScript

后端 未结 3 495
借酒劲吻你
借酒劲吻你 2020-12-01 07:58

I am working on a CMS site whose domain is:

http://www.acmssite.com

They have a sub-domain where they store a form system:

         


        
3条回答
  •  独厮守ぢ
    2020-12-01 08:38

    In order for this to not be restricted by the same origin policy, you will probably need to do this in both the pages:

    document.domain = "acmssite.com";
    

提交回复
热议问题