3 ms·
Yes, and that is a very important point you noticed. Both CORS and CSP are for guarding against malicious code on the web, being executed by non-malicious stan
by jrochkind1 7y ago
Yes, and that is a very important point you noticed.
Both CORS and CSP are for guarding against malicious code on the web, being executed by non-malicious standards-following browsers used by non-malicious users. (the user is in fact who is being attacked).
I think is frequently confused, and it leads to a mistake in the other direction, people thinking CORS or CSP can guard against malicious user-agents operated by malicious users. It is not for that!