Horje

How to add no-referrer-when-downgrade value on HTML <script> referrerpolicy Attribute

The URL is sent as a referrer when the protocol security level stays the same (e.g.HTTP→HTTP, HTTPS→HTTPS), but isn't sent to a less secure destination (e.g. HTTPS→HTTP).

no-referrer-when-downgrade Default. Sends the origin, path, and query string if the protocol security level stays the same or is higher (HTTP to HTTP, HTTPS to HTTPS, HTTP to HTTPS is ok). Sends nothing to less secure level (HTTPS to HTTP is not ok)
index.html
Example: HTML
<script src="myscripts.js" referrerpolicy="no-referrer-when-downgrade"></script>





Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin