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

@@ -29,6 +29,8 @@ export interface ParseServerOptions {
appName: ?string;
/* Add headers to Access-Control-Allow-Headers */
allowHeaders: ?(string[]);
/* Sets the origin to Access-Control-Allow-Origin */
allowOrigin: ?string;
/* Adapter module for the analytics */
analyticsAdapter: ?Adapter<AnalyticsAdapter>;
/* Adapter module for the files sub-system */