You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,30 @@ GitHub Action to fix the sha256 file-hashes in:
4
4
- blazor.boot.json
5
5
- service-worker-assets.js
6
6
7
-
## Inputs
7
+
## Why
8
8
9
-
### `wwwroot-path`
9
+
In case you deploy your Blazor Web on GitHub Pages are use the *SteveSandersonMS/ghaction-rewrite-base-href*-Action,
10
+
the index.html is modified and when running the Blazor WebAssembly using a service-worker, you can get this error in the console:
11
+
12
+
```
13
+
Failed to find a valid digest in the 'integrity' attribute for resource 'https://stefh.github.io/xxx/index.html' with computed SHA-256 integrity '/C6AMmjXzNTqgqy8YOF4zcMbioqALgdg/bbhWojItcw='. The resource has been blocked.
14
+
Unknown error occurred while trying to verify integrity.
15
+
service-worker.js:1 Uncaught (in promise) TypeError: Failed to fetch
16
+
```
17
+
18
+
## Solution
19
+
20
+
Use this GitHub Action to fix the SHA56 hashes from in the blazor.boot.json and service-worker-assets.js
21
+
22
+
## Usage
23
+
24
+
### Inputs
25
+
26
+
#### `wwwroot-path`
10
27
11
28
**Required** The path to the wwwroot folder. Default this is `.`.
0 commit comments