Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor WASM Integrity issues with Azure Static Web Apps Hosting

$
0
0

I recently published my Blazor WASM app to Azure static web apps. I'm skipping frontend build as mentioned over here in the official docs and publishing the output to Azure static web apps using the following action in yml.

- name: Publish Blazor Project  run: dotnet publish ./Web/Web.csproj -c:Release --no-restore -o dist/Web --nologo- uses: Azure/static-web-apps-deploy@v1  with:    azure_static_web_apps_api_token: ${{ env.AZURE_STATIC_WEB_APPS_API_TOKEN }}    action: "upload"    ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######    # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig    app_location: "dist/Web/wwwroot" # App source code path    api_location: "" # Api    output_location: "" # Built app content directory - optional    skip_app_build: true # Skip build - optional    ###### End of Repository/Build Configurations ######

I have the staticwebapp.config.json placed in the wwwroot of my blazor app.

Here is the content of staticwebapp.config.json:

{"navigationFallback": {"rewrite": "index.html"          },"mimeTypes": {".json": "text/json"    }  }

Now When I access the page, I get the following integrity error in browser console.

Failed to find a valid digest in the 'integrity' attribute for resource 'https://domain/staticwebapp.config.json' with computed SHA-256 integrity 'Y4zkp0LpTVetcAY96ckDWdIeBi7tMyNFMD5PDHdo+sQ='. The resource has been blocked.

Here is the error screen print:

enter image description here

Please can you assist me on what I'm missing?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>