HTTPS request via AJAX from HTTP page

后端 未结 2 726
傲寒
傲寒 2020-12-01 12:08

Would there be any problems calling an HTTPS page (e.g. a credit card authorisation service i.e. WorldPay) from a standard HTTP page via AJAX?

I can\'t imagine why t

相关标签:
2条回答
  • 2020-12-01 12:41

    Yes this would be a Cross domain posting and would be blocked by the browser.

    0 讨论(0)
  • 2020-12-01 12:45

    Anthony is right, but what you could do is create a local page the AJAX calls and that communicates with the HTTPS service via cURL or something else and returns. That way everything is done locally according to Java script.

    0 讨论(0)
提交回复
热议问题