Origin http://localhost is not allowed by Access-Control-Allow-Origin.?

前端 未结 3 1621
渐次进展
渐次进展 2020-12-04 18:31

i have a problem... i try to get json api in \"http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&token=90d2fad44172390b11527557e6250e50&secretkey

3条回答
  •  误落风尘
    2020-12-04 19:11

    a thorough reading of jQuery AJAX cross domain seems to indicate that the server you are querying is returning a header string that prohibits cross-domain json requests. Check the headers of the response you are receiving to see if the Access-Control-Allow-Origin header is set, and whether its value restricts cross-domain requests to the local host.

提交回复
热议问题