File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99
1010var services = builder . Services ;
1111var configuration = builder . Configuration ;
12- var env = builder . Environment ;
1312
1413services . AddSecurityHeaderPolicies ( )
1514 . SetPolicySelector ( ( PolicySelectorContext ctx ) =>
1615 {
17- return SecurityHeadersDefinitions . GetHeaderPolicyCollection ( env . IsDevelopment ( ) ,
18- configuration [ "MicrosoftEntraID:Instance" ] ) ;
16+ return SecurityHeadersDefinitions . GetHeaderPolicyCollection (
17+ builder . Environment . IsDevelopment ( ) ,
18+ configuration [ "MicrosoftEntraID:Instance" ] ) ;
1919 } ) ;
2020
2121services . AddScoped < MsGraphService > ( ) ;
6363
6464var app = builder . Build ( ) ;
6565
66- if ( env . IsDevelopment ( ) )
66+ if ( app . Environment . IsDevelopment ( ) )
6767{
6868 IdentityModelEventSource . ShowPII = true ;
6969
You can’t perform that action at this time.
0 commit comments