How to carry out Cross Domain request in a Webbrowser Control?

前端 未结 5 2343
太阳男子
太阳男子 2021-02-10 03:43

As you know doing Cross Domain XMLHTTP requests is not allowed for security reasons under Internet Explorer.

I have a WebBrowser Control and I\'m using DocumentTex

5条回答
  •  故里飘歌
    2021-02-10 04:03

    I found a dirty workaround, load a local HTML (c:\temp\temp.html) and then modify the content of it via javascript.

    After this point there is no more CrossDomain restrictions however using document.write causing other nasty problems such as JQuery .ready functions won't work.

提交回复
热议问题