Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit d7525e0

Browse files
author
Froilan Irizarry
committed
Added localhost to allowed domains
1 parent cbd0b8b commit d7525e0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

config/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ function getConfig(env='development') {
127127
: `0.0.0.0:${config.PORT}`;
128128
config.SWAGGER_DOCUMENT = getSwaggerConf(config.isProd, apiUrl);
129129

130-
config.ALLOWED_DOMAINS = config.isProd ? ['https://api.data.gov'] : ['*'];
130+
config.ALLOWED_DOMAINS = [
131+
`http://localhost:${config.PORT}`,
132+
`http://127.0.0.1:${config.PORT}`
133+
];
134+
135+
config.ALLOWED_DOMAINS.push(config.isProd ? 'https://api.data.gov' : '*');
136+
131137
return config;
132138
}
133139

0 commit comments

Comments
 (0)