Re:Do not let your CDN betray you: Use Subresource Integrity
by tveita on Thursday October 01, 2015 @11:29AM
(#10311806)
CORS doesn't require preflight requests for simple GETs and POSTs, since you can always trigger those anyway. The browser can just do the request and check the headers on the response.
[ Parent
| on HN ]
Re:Do not let your CDN betray you: Use Subresource Integrity
by nly on Thursday October 01, 2015 @03:18PM
(#10313888)
Wouldn't doing this on POST be dangerous? POSTs are not expected to be idempotent, so you're trusting the server to understand and check the Origin header etc.
Re:Do not let your CDN betray you: Use Subresource Integrity
by codedokode on Thursday October 01, 2015 @04:01PM
(#10314221)
You can send POST to any server using a JS-submitted form so it doesn't introduce new attack vector.