3 ms·
Or serve the untrusted content from a sub-subdomain, e.g. "foo.bar.CDN_HOST.com", so that you could only bomb bar.CND_HOST.com and not the entire domain
by jffry 13y ago
Or serve the untrusted content from a sub-subdomain, e.g. "foo.bar.CDN_HOST.com", so that you could only bomb bar.CND_HOST.com and not the entire domain
- mavhc 13y agoYou'd think a higher level domain should be able to specify whether a subdomain can set cookies for it or not.
- jffry 13y agoThat would be nice, but it would have a lot of ramifications. Before setting the cookie, the browser would need to know if it's allowed, so presumably it would have to load some file. Perhaps this could be done in a manner similar to CORS requests
- homakov 13y agoContent-Security-Policy: can-set-cookies: no! BTW if JS is of we can use <meta http-equiv Set Cookie>