Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving allowed domain settings to infra #37

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Conversation

pakb
Copy link
Contributor

@pakb pakb commented Oct 21, 2021

Allow localhost domain by default (if nothing is set, so on local dev machines)

@pakb pakb requested review from boecklic, hansmannj and ltshb October 21, 2021 07:39
app/settings.py Outdated
@@ -8,3 +8,7 @@
os.environ['LOGS_DIR'] = LOGS_DIR # Set default if not set
LOGGING_CFG = os.getenv('LOGGING_CFG', 'logging-cfg-local.yml')
TRAP_HTTP_EXCEPTIONS = True

# Definition of the allowed domains for CORS implementation
ALLOWED_DOMAINS_STRING = os.getenv('ALLOWED_DOMAINS', r'http[s]?://localhost')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would either use '.*' as default or no default at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep good point, I've removed the default value (it comes through the .env.local file anyway)

Allow localhost domain by default (if nothing is set, so on local dev machines)
@pakb pakb force-pushed the shift_config_to_infra branch from 4abe38b to 638975c Compare October 21, 2021 10:53
@pakb pakb requested a review from ltshb October 21, 2021 10:57
@ltshb ltshb merged commit e2538c5 into master Oct 21, 2021
@ltshb ltshb deleted the shift_config_to_infra branch October 21, 2021 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants