https://github.com/jscheid/wsi-issue-47
https://github.com/jscheid/wsi-issue-47
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jscheid/wsi-issue-47
- Owner: jscheid
- Created: 2017-07-16T22:15:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T22:15:38.000Z (almost 9 years ago)
- Last Synced: 2025-01-30T04:19:37.145Z (over 1 year ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Integration test for webpack-subresource-integrity with
optimize-css-assets-webpack-plugin.
See https://github.com/waysact/webpack-subresource-integrity/issues/47
To use:
- `yarn install`
- `yarn build`
- `yarn server`
- open URL with SRI-capable browser (e.g. recent Chrome)
- background should be white and console should show an error along the lines of:
```
Failed to find a valid digest in the 'integrity' attribute for resource 'http://127.0.0.1:8080/styles.css' with computed SHA-256 integrity 'l2F7fk7Wy0wNPkZVpFD9angKir7+SKuMLNuOCisZ23c='. The resource has been blocked.
```