Skip to content

Commit

Permalink
Close gaping security hole
Browse files Browse the repository at this point in the history
  • Loading branch information
thatandromeda committed Jun 12, 2017
1 parent df51663 commit b45583e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The app deploys to mitlibraries-solenoid.herokuapp.com, with the libdev-cs crede

If for some reason you wanted to set it up from scratch, you'd need to do the following:
* Set up a Heroku instance associated with your repository (https://devcenter.heroku.com/articles/deploying-python)
* Add its URL to `ALLOWED_HOSTS` in `settings/heroku.py`
* Provision the following apps:
* Postgres
* Quotaguard Static
Expand Down
3 changes: 2 additions & 1 deletion solenoid/settings/heroku.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['mitlibraries-solenoid.herokuapp.com',
'mitlibraries-solenoid-staging.herokuapp.com']


# STATIC FILE CONFIGURATION
Expand Down

0 comments on commit b45583e

Please sign in to comment.