Horje

How to add origin-when-cross-origin value on HTML <script> referrerpolicy Attribute

Send a full URL when performing a same-origin request, but only send the origin of the document for other cases.

origin-when-cross-origin Sends the origin of the document for cross-origin request. Sends the origin, path, and query string for same-origin request
index.html
Example: HTML
<script src="myscripts.js" referrerpolicy="origin-when-cross-origin"></script>





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