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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MzYzMDYsIm5iZiI6MTczOTUzNjAwNiwicGF0aCI6Ii8xMjk3NTc0LzM5NDQwNTQyMy1kZTliNmFkYi02OTIzLTRlZTEtYjBlOC1hNThhNDg2N2Y0YWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTIyNjQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDA2YjQ5OGIzODc2NjRmZGU2ZTA5YTc5YTg5MDQ2Y2JlM2RkNmJiYmY2YWI4ODY1YTk5NzAwYzU1ZWRlMWI0OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.SVm9XhEViZV59KmVIJHrJOJVsuRct4zUI4z4wuOeNmM)
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