WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

Those are just the initial setting values, you can still configure the values after the calls to AddCors/AddJwtBearer but before the service provider is built. Just register IConfigureOptions<CorsOptions> or IConfigureOptions<JwtBearerOptions> and inject your configuration dependencies into those. You can then use Configure (or PostConfigure with IPostConfigureOptions<>) to complete the configuration using your dynamic values

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@PureKrome
Comment options

Answer selected by davidfowl
Comment options

You must be logged in to vote
7 replies
@PureKrome
Comment options

@pinkfloydx33
Comment options

@PureKrome
Comment options

@pinkfloydx33
Comment options

@pinkfloydx33
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants