3 ms·
> It provides both opt-out protections as an attempt to mitigate XSS attacks nitpick, I guess, but CORS is about CSRF (Cross Site Request Forgery) and not XSS
by sweetjuly 2y ago
> It provides both opt-out protections as an attempt to mitigate XSS attacks
nitpick, I guess, but CORS is about CSRF (Cross Site Request Forgery) and not XSS (Cross Site Scripting). If you have an XSS bug, CORS can't save you since they can make requests from your origin.