Odd jQuery problem - Ajax request to a C program not quite working

后端 未结 1 896
旧时难觅i
旧时难觅i 2020-12-22 10:36

I have this basic setup:

  • C program opens a socket on a specific unused port (let\'s say 1234) and waits, listening specifically for HTTP requests.
  • Web
1条回答
  •  孤城傲影
    2020-12-22 10:59

    A different port on the same website still violates the XHR Cross domain policy. The only way it could work cross-domain is either JSONP (does not support POST requests) or a proxy webservice on the same server.

    JSONP is the easiest, what it does is basically just add a

提交回复
热议问题