DD-9475 avatar image
0 Votes"
DD-9475 asked DD-9475 edited

Blazor Webassembly: Swagger endpoint does not work as expected when PWA is enabled and is publised to Azure appservice

I created a simple Blazor WebAssembly project with Asp.Net hosted and PWA feature on.
Added <PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.1" /> to Server project.

Ran it locally and I can hit the swagger page when I type this in URL:

I published the same app to Azure appservice, and hit the swagger endpoint,
The application did not display swagger UI, it seems it reloaded the web app.

When I press Control+F5, it showed the swagger UI

It seems the problem is caused due to PWA because when I published without PWA, the swagger endpoint worked as expected.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers