Browse Source

Change options to builder in the Mvc.Server sample

pull/92/merge
Shaun Luttin 10 years ago
committed by Kévin Chalet
parent
commit
e0f62dc3e3
  1. 6
      samples/Mvc.Server/Startup.cs

6
samples/Mvc.Server/Startup.cs

@ -85,10 +85,10 @@ namespace Mvc.Server {
// Note: OpenIddict must be added after
// ASP.NET Identity and the external providers.
app.UseOpenIddict(options => {
app.UseOpenIddict(builder => {
// You can customize the default Content Security Policy (CSP) by calling UseNWebsec explicitly.
// This can be useful to allow your HTML views to reference remote scripts/images/styles.
options.UseNWebsec(directives => {
builder.UseNWebsec(directives => {
directives.DefaultSources(directive => directive.Self())
.ImageSources(directive => directive.Self().CustomSources("*"))
.ScriptSources(directive => directive
@ -147,4 +147,4 @@ namespace Mvc.Server {
}
}
}
}
}

Loading…
Cancel
Save