feat: allow custom cors origin header (#6772)

This commit is contained in:
Kevin Yao
2020-07-10 11:48:57 -07:00
committed by GitHub
parent 6fc42a526f
commit d03ec18bcc
5 changed files with 45 additions and 1 deletions

View File

@@ -28,6 +28,10 @@ module.exports.ParseServerOptions = {
help: 'Add headers to Access-Control-Allow-Headers',
action: parsers.arrayParser,
},
allowOrigin: {
env: 'PARSE_SERVER_ALLOW_ORIGIN',
help: 'Sets the origin to Access-Control-Allow-Origin',
},
analyticsAdapter: {
env: 'PARSE_SERVER_ANALYTICS_ADAPTER',
help: 'Adapter module for the analytics',