How to set Content Security Policy with a Meta Tag?

TL;DR AI
2 min readKey summary
You can set Content Security Policy with a `<meta http-equiv="Content-Security-Policy">` tag in HTML.
This is useful for static sites, prototypes, and environments where you cannot control response headers.
However, it does not protect early requests, so it is less complete than an HTTP response header.
It also does not support some directives such as `report-uri`, `report-to`, `frame-ancestors`, and `sandbox`.
