Azure / Azure/static-web-apps

Blazor WASM Loading Error Refused to execute script blazor.webassembly.js because its MIME type ('text/html') is not executable

Open
#539 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Failure to load blazor wasm app net5.0 with error:

`Refused to execute script from 'https://white-river-09457a803.azurestaticapps.net/_framework/blazor.webassembly.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.`

**To Reproduce**
See this repository https://github.com/mumby0168/website
Then see the error on this website: https://white-river-09457a803.azurestaticapps.net/

I have tried the following config files see this file and it's history in github:
https://github.com/mumby0168/website/commits/master/Website.Client/wwwroot/staticwebapp.config.json

**Expected behavior**
The app will load up.

**Screenshots**
If applicable, add screenshots to help explain your problem.

I am using Edge version: `Version 92.0.902.67 (Official build) (x86_64)` on MAC OS

**Additional context**
`n/a`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.