mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Allow trusted origins to be configured via .env #137

Closed agarciadom closed 8 months ago

agarciadom commented 8 months ago

This should help with the customisability of the token server, by adding support for specifying the trusted origins by setting TRUSTED_ORIGINS to a comma-separated list of origins in the .env file.

barnettwilliam commented 8 months ago

Looks good, these can apply to other servers that support the platform so agree with the name used and for single origins the express config doesn't require the array as originally used.