Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This:
![изображение](https://private-user-images.githubusercontent.com/1297574/394405423-de9b6adb-6923-4ee1-b0e8-a58a4867f4ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDU2NDAsIm5iZiI6MTczOTM0NTM0MCwicGF0aCI6Ii8xMjk3NTc0LzM5NDQwNTQyMy1kZTliNmFkYi02OTIzLTRlZTEtYjBlOC1hNThhNDg2N2Y0YWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDcyOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTk2YTk0ZjUwMjUwMTRmYzUxOTM5N2Q0NTBiOWFlNDhkMWJlNWYyNzFiZTZjZGY3ZjAzNTIzMDUzMjVjZjFmMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Id5gBpn9VSKischJT9JaAk5BmyKJMgerLm4s4ip4pLo)
Duendes
.UseIdentityServer()
uses theBasePath
set byapp.UsePathBase()
which works properly with CORS unlikeBasePathMiddleware
and.UseWhen()
.https://github.com/DuendeSoftware/IdentityServer/blob/1ef386a7ab82cad5be4faac1d47155a626f43609/src/IdentityServer/Configuration/IdentityServerApplicationBuilderExtensions.cs#L41