Skip to content

Commit

Permalink
Correct brackets in CORS docs example (IdentityServer#5129)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanstdam authored Jan 19, 2021
1 parent 3ba0182 commit b96f3ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/topics/cors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ This would be configured as a singleton in DI, and hard-coded with its ``Allowed
For example, in ``ConfigureServices``::

services.AddSingleton<ICorsPolicyService>((container) => {
{
var logger = container.GetRequiredService<ILogger<DefaultCorsPolicyService>>();
return new DefaultCorsPolicyService(logger) {
AllowedOrigins = { "https://foo", "https://bar" }
};
};
});

.. Note:: Use ``AllowAll`` with caution.

Expand Down

0 comments on commit b96f3ad

Please sign in to comment.