error in AJAX

27 بهمن ۱۴۰۰

MyFirstPage.html:1 Access to XMLHttpRequest at 'file:///C:/matin/jquery/codyad/testdata.txt' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.

jquery-3.6.0.min.js:2 GET file:///C:/matin/jquery/codyad/testdata.txt net::ERR_FAILED

وقتی کد ajax  (همبرای خودم هم کپی کد شما) رو اجرا میکنم با ارور بالا مواجه میشم ممنون میشم دلیلشو بگید

338

0 پاسخ