【已解决】

jquery,文件和php文件都放www文件夹中,但是老是有这个错误,怎么解决

海狼三世

jquery,文件和php文件都放www文件夹中,但是老是有这个错误,怎么解决

jquery-1.12.3.min.js:4 Failed to load file:///D:/phpstudy_pro/WWW/example03.php: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

send @ jquery-1.12.3.min.js:4


问题比较着急?请联系QQ:760483
  • 海狼三世
  • 海狼三世    2019-12-05 11:26:431楼

    或者是这样的提示:怎么解决

    jquery-1.12.3.min.js:4 Access to XMLHttpRequest at 'file:///D:/phpstudy_pro/WWW/example05.php' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

    send    @    jquery-1.12.3.min.js:4    

    ajax    @    jquery-1.12.3.min.js:4    

    (anonymous)    @    Example05jQueryAJAX_ajax().html:32    

    dispatch    @    jquery-1.12.3.min.js:3    

    r.handle    @    jquery-1.12.3.min.js:3    


    +添加回复

  • 回复