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

Add domain whitelist #264

Merged
merged 4 commits into from
Sep 19, 2018
Merged

Add domain whitelist #264

merged 4 commits into from
Sep 19, 2018

Conversation

froi
Copy link
Contributor

@froi froi commented Sep 19, 2018

Summary

Added allowed domains to CORS middleware configuration. This will stop malicious actors from probing our API and force users to go through api.data.gov.

Explain the motivation for making this change. What existing problem does the pull request solve?

We wanted to force our users to go through api.data.gov. Before this change they could bypass it if they knew about the route URL from Cloud.gov

Test plan (required)

Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.

All test passed:
image

@froi froi merged commit 88c8e6d into master Sep 19, 2018
@froi froi deleted the add-domain-whitelist branch September 19, 2018 02:45
seanstar12 pushed a commit to seanstar12/code-gov-api that referenced this pull request Aug 27, 2019
Add allowed domains to CORS middleware.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant