简体   繁体   中英

jquery ajax webservice 304 and 200 Error ()

web service is giving the problem 304 and 200 OK but it does not body of there code in chrome it is giving the problem of

XMLHttpRequest cannot load "webservice" Origin null is not allowed by Access-Control-Allow-Origin

please guide me how to resolve it

Enable cross-domain connections:

<script>
      jQuery.support.cors = true;      
      $(document).ready(function(){
      ....
      }
</script>

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