v149 · CSS · Security · SRI
Integrity Snippet Builder
Fill in the details and get copy-pasteable CSS with url() request modifiers — integrity(), cross-origin(), and referrer-policy() — plus the equivalent HTML attributes for comparison.
Resource Details
Modifiers
CSS (Chrome 149 url() modifiers)
/* building… */
HTML equivalent (for comparison)
HTTP Content-Security-Policy (recommended to add)
/* building… */
modifier reference
| Modifier | CSS url() | HTML equivalent | Purpose |
|---|---|---|---|
| CORS | cross-origin(anonymous) |
crossorigin="anonymous" |
CORS mode for the fetch request |
| SRI | integrity(sha384-…) |
integrity="sha384-…" |
Subresource Integrity hash check |
| Referrer | referrer-policy(no-referrer) |
referrerpolicy="no-referrer" |
Controls Referer header on fetch |
see also
- Request Security Reference — HTML vs CSS comparison
- HTML / CSS Loading Parity — full parity table
- Feature index