File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const environmentConfig: EnvironmentConfigType = {
37
37
AzureRoleMapping : { AutonomousWriters : [ AppRoles . MANAGER ] } ,
38
38
ValidCorsOrigins : [
39
39
"http://localhost:3000" ,
40
- / ^ (?: .* \. ) ? a c m u i u c \. p a g e s \. d e v $ / ,
40
+ / ^ h t t p s : \/ \/ (?: .* \. ) ? a c m u i u c \. p a g e s \. d e v $ / ,
41
41
] ,
42
42
AadValidClientId : "39c28870-94e4-47ee-b4fb-affe0bf96c9f" ,
43
43
} ,
@@ -49,9 +49,9 @@ const environmentConfig: EnvironmentConfigType = {
49
49
} ,
50
50
AzureRoleMapping : { AutonomousWriters : [ AppRoles . MANAGER ] } ,
51
51
ValidCorsOrigins : [
52
- "https:/// acm.illinois.edu" ,
53
- "https:/// www.acm.illinois.edu" ,
54
- / ^ (?: .* \. ) ? a c m u i u c \. p a g e s \. d e v $ / ,
52
+ "https://acm.illinois.edu" ,
53
+ "https://www.acm.illinois.edu" ,
54
+ / ^ h t t p s : \/ \/ (?: .* \. ) ? a c m u i u c \. p a g e s \. d e v $ / ,
55
55
] ,
56
56
AadValidClientId : "5e08cf0f-53bb-4e09-9df2-e9bdc3467296" ,
57
57
} ,
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ async function init() {
68
68
{ prefix : "/api/v1" } ,
69
69
) ;
70
70
await app . register ( cors , {
71
- origin : environmentConfig [ app . runEnvironment ] . ValidCorsOrigins ,
71
+ origin : app . environmentConfig . ValidCorsOrigins ,
72
72
} ) ;
73
73
74
74
return app ;
You can’t perform that action at this time.
0 commit comments