@@ -108,13 +108,15 @@ Mappings:
108108 " jwtIssuer " : " https://lti.canvas.ox.ac.uk"
109109 " jwtJWKSURI " : " https://lti.canvas.ox.ac.uk/.well-known/jwks.json"
110110 " ltiIssuer " : " https://lti.canvas.ox.ac.uk"
111+ " uiFrontendUrl " : " https://tools-support-prod.canvas-tools.app"
111112 beta :
112113 " mngdUpdates " : " MON:06:00"
113114 # We have an additional profile that unsets things on the non-prod account
114115 " springProfile " : " aws,nonprod" # SPRING_PROFILES_ACTIVE
115116 " jwtIssuer " : " https://lti-dev.canvas.ox.ac.uk"
116117 " jwtJWKSURI " : " https://lti-dev.canvas.ox.ac.uk/.well-known/jwks.json"
117118 " ltiIssuer " : " https://lti-dev.canvas.ox.ac.uk"
119+ " uiFrontendUrl " : " https://tools-support-beta.canvas-tools.app"
118120
119121Conditions :
120122 isProd : {"Fn::Equals": [!Ref envType, "prod"]}
@@ -273,6 +275,10 @@ Resources:
273275 # The iss that we sign our issued tokens with.
274276 OptionName : " LTI_ISSUER"
275277 Value : !FindInMap [ EnvironmentMappings, !Ref envType, ltiIssuer ]
278+ - Namespace : " aws:elasticbeanstalk:application:environment"
279+ # The frontend URL that should be able to make requests to the admin backend.
280+ OptionName : " ADMIN_CORS_ORIGINS"
281+ Value : !FindInMap [ EnvironmentMappings, !Ref envType, uiFrontendUrl ]
276282 # At one point this used to be in a different configuration template but cloudformation doesn't update
277283 # templates that use `SourceConfiguration` so it was un-updatable. These options are now included in the main
278284 # configuration template
0 commit comments