mersinvald / aquamarine

Inline diagrams for rustdoc with mermaid.js
MIT License
487 stars 25 forks source link

Add crossorigin attribte to script tag #3

Closed themasch closed 3 years ago

themasch commented 3 years ago

The crossorigin attribute defines how the browser should behave in cross origin request when fetching resources referenced by the tag. Setting this to "anonymous" prevents the browser from sending cookies or other credentials with the request and thus stops tracking. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin

I thought it would be nice to have this. We sadly cannot have integrity checks as those would require pinning a certain mermaid.js version, which seems impracticable.

mersinvald commented 3 years ago

Sounds great, thanks for the contribution, @themasch!