Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ function getConfig(env='development') {
: `0.0.0.0:${config.PORT}`;
config.SWAGGER_DOCUMENT = getSwaggerConf(config.isProd, apiUrl);

config.ALLOWED_DOMAINS = config.isProd ? ['https://api.data.gov'] : ['*'];
config.ALLOWED_DOMAINS = [
`http://localhost:${config.PORT}`,
`http://127.0.0.1:${config.PORT}`
];

config.ALLOWED_DOMAINS.push(config.isProd ? 'https://api.data.gov' : '*');

return config;
}

Expand Down
2 changes: 1 addition & 1 deletion manifest-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ applications:
ES_HEAP_SIZE: 10g
CF_STAGING_TIMEOUT: 15
CF_STARTUP_TIMEOUT: 15
NODE_ENV: production
NODE_ENV: staging
NEW_RELIC_APP_NAME: code-api-staging
ELASTICSEARCH_SERVICE_NAME: code_gov_elasticsearch
services:
Expand Down