jQuery ajax and SSL?

前端 未结 1 1949
走了就别回头了
走了就别回头了 2020-12-01 08:27

In our site certain pages use SSL, most pages however don\'t (as they need to be crawled by web bots).

It pretty much boils down to any page where the user is logged

相关标签:
1条回答
  • 2020-12-01 09:04

    It violates JavaScript's same-origin policy, because it doesn't see the HTTPS URL as being from the same source as the HTTP URL. You can get around this by using JSONP or setting a Access-Control-Allow-Origin header in the response from the web service. Many web services will be setup to do this already.

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