Skip to content

Commit f88daeb

Browse files
committed
fix typing and add a note to the description that this string can be comma delimited for multiple domains
1 parent 00484ef commit f88daeb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Options/Definitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ module.exports.ParseServerOptions = {
8181
},
8282
allowOrigin: {
8383
env: 'PARSE_SERVER_ALLOW_ORIGIN',
84-
help: 'Sets the origins to Access-Control-Allow-Origin',
84+
help:
85+
'Sets the origin to Access-Control-Allow-Origin. Can be comma delimited if multiple should be supported',
8586
},
8687
analyticsAdapter: {
8788
env: 'PARSE_SERVER_ANALYTICS_ADAPTER',

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export interface ParseServerOptions {
6161
appName: ?string;
6262
/* Add headers to Access-Control-Allow-Headers */
6363
allowHeaders: ?(string[]);
64-
/* Sets the origins to Access-Control-Allow-Origin */
65-
allowOrigin: ?(string[]);
64+
/* Sets the origin to Access-Control-Allow-Origin. Can be comma delimited to support multiple */
65+
allowOrigin: ?string;
6666
/* Adapter module for the analytics */
6767
analyticsAdapter: ?Adapter<AnalyticsAdapter>;
6868
/* Adapter module for the files sub-system */

0 commit comments

Comments
 (0)