File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Auth/LearningHub.Nhs.Auth Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 2525
2626string corsOriginUrl = builder . Configuration . GetValue < string > ( "LearningHubAuthConfig:AuthClients:learninghubopenapi:BaseUrl" ) ;
2727
28- string corsMoodleUrl = builder . Configuration . GetValue < string > ( "MoodleAPIConfig:BaseUrl" ) ;
29-
3028builder . Services . AddCors ( options =>
3129{
3230 options . AddPolicy (
3634 . AllowAnyHeader ( ) ) ;
3735} ) ;
3836
39- builder . Services . AddCors ( options =>
40- {
41- options . AddPolicy ( "MoodleCORS" , builder =>
42- {
43- builder . WithOrigins ( corsMoodleUrl )
44- . AllowAnyHeader ( )
45- . AllowAnyMethod ( )
46- . AllowCredentials ( ) ;
47- } ) ;
48- } ) ;
49-
5037builder . Services . ConfigureServices ( builder . Configuration , builder . Environment ) ;
5138
5239GlobalDiagnosticsContext . Set ( "connectionString" , builder . Configuration . GetSection ( "ASPNETCORE_ConnectionStrings" ) [ "NLogDb" ] ) ;
8572
8673app . UseCors ( "CorsPolicy" ) ;
8774
88- app . UseCors ( "MoodleCORS" ) ;
89-
9075app . UseCookiePolicy ( ) ;
9176
9277app . UseHttpsRedirection ( ) ;
You can’t perform that action at this time.
0 commit comments