/    Sign up×
Community /Pin to ProfileBookmark

Hi,
I have a local file and a HTML file with href link which refers to local file in my computers. However when i clicked the link it gives me CORS exception…How to avoid CORS exception and wanted to open the file without any issues.

Thanks in advance.

to post a comment

2 Comments(s)

Copy linkTweet thisAlerts:
@VITSUSAJun 24.2020 — Click on the mentioned hyperlink to know about how you can avoid CORS exception and wanted to open the file without any issues -

https://medium.com/@dtkatz/3-ways-to-fix-the-cors-error-and-how-access-control-allow-origin-works-d97d55946d9
Copy linkTweet thisAlerts:
@vikram_jkJul 11.2020 — In CORS issue, simply the server ( from where you are requesting file ) doesn't allow to transfer file to another domain.

You need to allow it on your local host.

If you are hosting files on your local using IIS

https://qawithexperts.com/article/asp-net/enabling-cors-in-iis-various-possible-methods/291

If you are fetching page using jquery and want to enable CORS

https://stackoverflow.com/a/5753269/3559462
×

Success!

Help @developerweb569 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...