Linked Questions

27 votes
1 answer
72k views

I am working to dynamically create a UI from XML using jQuery. My jQuery is working in Firefox but in Chrome it's not working. It gives me this console error: Cross origin requests are only ...
vibog's user avatar
  • 283
7 votes
2 answers
66k views

I'm new in AJAX and currently learning very basics of it. In my html file on hitting the submit button I'm just trying to log the text of a text file which is in the same directory of html file itself....
Prateek Gautam's user avatar
9 votes
1 answer
16k views

When I run my code it errors with: Fetch API cannot load file:///C:/Users/woshi/Desktop/P5/p5/JSON/birds.json. URL scheme must be "http" or "https" for CORS request //birds.js var data; ...
kai huang's user avatar
  • 105
3 votes
2 answers
32k views

When I try to do a ajax call, I got the error on chrome below. XMLHttpRequest cannot load javascript:;. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-...
Durgesh Pandey's user avatar
4 votes
1 answer
47k views

This error occurred while calling up JSON. I don't know why this error is happening. $.getJSON(url, function(data){ console.log(data); }); Error: Access to XMLHttpRequest at (this is JSON URL) ...
index's user avatar
  • 51
6 votes
1 answer
26k views

All I'm trying to do is access the contents of a json file and display them to a web page. But I'm getting this error: Access to XMLHttpRequest at 'file:///C:/Users/bobal/Documents/htmlTry/myData....
Cole Perry's user avatar
1 vote
3 answers
7k views

I have problem receiving data from api with all other links it was ok but that one is so hard .. So here is the code $.ajax({ url: 'proxy.php?url=https://na.api.pvp.net/observer-mode/rest/consumer/...
QQstuf's user avatar
  • 15
2 votes
1 answer
6k views

I'm trying to load an object from my system using OBJLoader but I'm always getting CORS error telling me this: Access to XMLHttpRequest at 'file:///Users/pranayankittiru/Desktop/tasks/resources/Pix....
Pranay Ankit's user avatar
0 votes
1 answer
7k views

Trying to get some data from a local JSON file stored in the same directory, I get this: Access to XMLHttpRequest at 'file:///C:/Visual%20Studio%20Code/Practice/customer.json' from origin 'null' ...
Igor Nikonov's user avatar
1 vote
1 answer
3k views

I have a local json file in my web directory and want to access it. I currently use $.getJSON() from jquery and it works fine with all browsers but chrome. How can I access this file via chrome? ...
sirzento's user avatar
  • 748
3 votes
1 answer
16k views

I have a XML file saved in my local machine and I want to read it through javascript. The following is my local xml path D:\user\xml\test1.xml. <script> if (window.XMLHttpRequest) { ...
Sam's user avatar
  • 5,310
1 vote
1 answer
3k views

When trying to load a Python script from a separate file using PyScript, I get the following error: JsException(TypeError: Failed to fetch) How can I fix this error and run the Python script? My ...
Jack Taylor's user avatar
  • 6,287
-3 votes
1 answer
7k views

I have to make a game, which gives the definition of a word and you have to guess it. It gives me an error while making an Ajax request: jquery-3.2.1.js:9566 Access to XMLHttpRequest at 'file:///D:/...
Cristina Borrego's user avatar
1 vote
1 answer
3k views

I'm very new to angular, trying to use a templateUrl in a angular directive. When I try to run the local html in browser it's showing me these errors --> XMLHttpRequest cannot load file:///Users/...
Suparna's user avatar
  • 85
0 votes
1 answer
2k views

Here is the test.html ,I wrote: <!doctype html> <html> <head> <meta charset="utf-8"> <title>My Home Page</title> </head> ...
user avatar

15 30 50 per page
1
2 3 4 5
18