What is the point of existence of CORS in JavaScript? | Sololearn: Learn to code for FREE!

0

What is the point of existence of CORS in JavaScript?

If one can make web requests using other languages like python to any domain/origin they want then what is the use of CORS. In my opinion it is just making JavaScript a stupid language. It's so frustrating to see how much time I have wasted to make a simple web request in JavaScript and all I am learning is to access different paths in the same origin or website. How does CORS makes websites secure? I don't see any valid reasons. Please enlighten meπŸ˜­πŸ™

2/1/2020 6:19:14 PM

Saurabh Tiwari

1 Answer

New Answer