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

Use camo in development and restrict CSP img-src #378

Merged
merged 2 commits into from
Mar 6, 2015

Conversation

dstufft
Copy link
Member

@dstufft dstufft commented Mar 6, 2015

To better match a production deployment we're going to run a copy of camo locally and use that even in development. Since all user supplied images go through Camo then, we can also restrict the img-src of the CSP to only use the hosts we expect instead of all hosts.

Development should match production as much as possible, so we'll
run camo even in development. However we don't know what the domain
of the local site is development so we need a small hack to support
late binding of the actual hostname (but not port number).

This also means that camo is no longer an optional part of a
deployment.
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.

1 participant