v12 RC2 Swagger UI not working on Umbraco Cloud
See original GitHub issueWhich Umbraco version are you using? (Please write the exact version, example: 10.1.0)
12.0.0-rc2
Bug summary
I cloned an Umbraco Cloud project (11.3.1) locally and upgraded it to 12.0.0-rc2
with the following command: dotnet add package Umbraco.Cms --version 12.0.0-rc2
.
After that I enabled the Content Delivery API following these steps: https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api
Then I tried the Swagger UI on my local environment and it worked. I pushed my changes to Umbraco Cloud and tried to do the same there. However there the Swagger UI is not working:
Local:
Umbraco Cloud:
Swagger UI doesn’t work, but the Content Delivery API does work.
Local:
Umbraco Cloud:
If you visit this Umbraco Cloud URL you can see the results (it’s a trial which is almost over): https://umbraco-trial.euwest01.umbraco.io/umbraco/delivery/api/v1/content
Specifics
No response
Steps to reproduce
See bug summary.
Expected result / actual result
The Swagger UI should work local and on Umbraco Cloud.
Issue Analytics
- State:
- Created 4 months ago
- Comments:5 (4 by maintainers)
This is the Kenn you’re looking for - @kjac 😺
Hi @kjac,
Thanks for the info! I used Kudu and changed the ASPNETCORE_ENVIRONMENT value from Production to Development on my Umbraco Cloud site and I can confirm that Swagger is working now. I’m using this Umbraco Cloud site only for experiments. So I would not do that on a real website 😉.
I understand that this is by design. It might be a good idea to add that to the docs: https://docs.umbraco.com/umbraco-cms/v/12.latest/reference/content-delivery-api#swagger. Otherwise there might be more people who think this is a bug.