DEV Community

Discussion on: When the browser can't take a (preconnect) hint

malvoz profile image
Robert Linder

"CORS improves web security. That's all I'll say about it here, because smarter people have explained it better elsewhere."

(while I'm not claiming to be one of the smarter people you're referring to) CORS is actually used to "circumvent" the Same-Origin Policy which is a browser built-in security mechanism that would otherwise not allow for cross-origin resource sharing.