Requesting IPFS in HTML

Hi,
I am about to code ipfs commands in html… Can someone explain me how this import function works?
I mean it works, but what means integrity:… and crossorigin:…?

Those are just attributes that can be set on script tags. See:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

To be more specific, integrity and crossorigin are part of SRI (Subresource Integrity), an opt-in security feature:

The Subresource Integrity feature enables you to mitigate the risk of attacks such as this, by ensuring that the files your Web application or Web document fetches (from a CDN or anywhere) have been delivered without a third-party having injected any additional content into those files — and without any other changes of any kind at all having been made to those files.

Thank you. I have a look on it :slight_smile: