0
I would like to upload an external json file to my html page through javascript.
When I tried, the following error occurred: " Cross origin requests are only supported for Protocol schemes: http, data, Chrome, Chrome-Extension, https".
It accuses that I cannot upload files using "File://c:/", but I want my file to be next to the folder on my machine.
One solution I found was to put all my code and run it for example by wampserver using localhost:80, but I wouldn’t want you to have to install wamp or something like that.
It is possible to upload the data from the json file without having to use this solution?
It would be good to add to the question the code you are using.
– Jéf Bueno