简体   繁体   中英

cross-origin resolve in firefox but not in chromium

I'm dealing with the problem of cross-origin in javascript when i do a http request, i resolve the problem with CORS, my webserver put the headers: allow-origin and my browser (firefox) accept the request.

But testing my js in Chromium i have found with this message:

XMLHttpRequest cannot load http://localhost:8111/. Origin null is not allowed by Access-Control-Allow-Origin.

To whe Chromium browser there are another way? not enough with the server response put the headers?

Thanks.

使用jsonp访问跨域ajax请求

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM