Skip to content

Some warnings "A preload for 'http://localhost:5215/_framework/blazor.webassembly.66stpp682q.js' is found, but is not used because the request credentials mode does not match" appear when running the 10.0 Blazor wasm Standalone app #64011

@jinzhao1127

Description

@jinzhao1127

REGRESSION INFO: Works well on 10.0 RC 1

INSTALL STEPS:

  1. Install Latest 10.0 GA from https://aka.ms/dotnet/10.0.1xx/daily/dotnet-sdk-win-x64.exe
  2. Apply Feed

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. Open up a normal Command Prompt (Terminal)
  2. Create a Blazor wasm Standalone app and run it.
    dotnet new blazorwasm -o wasm
    cd wasm
    dotnet run
    
  3. Open the browser and go to the URL http://localhost:xxxx
  4. Open the browser developer console window

Actual Result

The console window contains some warnings "A preload for 'http://localhost:5215/_framework/blazor.webassembly.66stpp682q.js' is found, but is not used because the request credentials mode does not match"

Image

Error Log

A preload for 'http://localhost:5215/_framework/blazor.webassembly.66stpp682q.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
blazor.webassembly.66stpp682q.js:1 Debugging hotkey: Shift+Alt+D (when application has focus)
[NEW] Explain Console errors by using Copilot in Edge: click
         
         to explain an error. 
        Learn more
        Don't show again
7The resource <URL> was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Expected Result:
There is no any error or warning on the console window.

Note:

  1. This issue does not repro on 10.0 Blazor Web App
  2. This issue does not repro on 9.0/8.0 Blazor wasm Standalone app
  3. After refresh the browser, the warning still exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions