What is the point of existence of CORS in JavaScript? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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­čśş­čÖĆ

1st Feb 2020, 6:19 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
0 Antworten