CORS what attacks prevent code example Example: how cors stops xss How does CORS prevent XSS? It does not. It is not meant to do so.