3 ms·
CORS won't do it, because it protects the response target, not the response source. CSP would do the trick, though. The other fix is properly escaping things
by bzbarsky 7y ago
CORS won't do it, because it protects the response target, not the response source.
CSP would do the trick, though.
The other fix is properly escaping things before sticking them in your markup.