Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put SRI hash generator in the build pipeline #1

Open
nic opened this issue Feb 6, 2020 · 0 comments
Open

Put SRI hash generator in the build pipeline #1

nic opened this issue Feb 6, 2020 · 0 comments

Comments

@nic
Copy link
Contributor

nic commented Feb 6, 2020

To generate:

openssl dgst -sha384 -binary index.min.js | openssl base64 -A

And than, put this hash into the integrity field:

<script integrity="sha384-B3DX3OvP9KQwVGQmAL89R/CjAKwhqY42p6+pE5/iGkzSsCxKYJajPXecbe45S7ok" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/@quan-to/[email protected]/dist/index.min.js" ></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant