Quote:
Originally Posted by Abdul Moeed
This has been disabled on purpose - security.
The security risk is anyone can create a webpage with a link to local files on your hard drive.
If not disabled then it would mean that attackers would be able to even link to and run any executables on your PC from the internet through the browser when you visit an arbitrary web page.
This used to work in the past to enable links in browser to local files. It may or may not work with modern versions of the browsers:
Code:
https://github.com/tksugimoto/chrome-extension_open-local-file-link
You can try it and see if it works for you.
|
So you are likely a greenhorn in this area. But since you've not heard of CORS, here is a reference as it's pretty standard for some years now to be able to allow cross origin resource sharing:
Quote:
|
https://aws.amazon.com/what-is/cross-origin-resource-sharing/
|
I already mentioned web servers have their own security.
However here he said connection refused, not a 400 unauthorized which would be the correct and likely behavior for a properly configured web server. Hope I've taught our greenhorn friend here some web dev info so they can provide more accurate responses in the future