Horje

How to add HTML <script> crossorigin Attribute

Here is a link to a .js file on another server. Here we use both the integrity and crossorigin attributes.

<script
            type="text/javascript"
            src="my_script.js"
            crossorigin="anonymous"
        ></script>

Output should be:

How to add HTML <script> crossorigin Attribute




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