]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: settings set ALLOWED_HOSTS to * in debug mode
authorbrian avery <brian.avery@intel.com>
Fri, 4 Nov 2016 12:27:06 +0000 (12:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Nov 2016 11:38:23 +0000 (11:38 +0000)
commit7f51149453c96a3f1da64ea85306518fd2b65f21
tree0272a14aeb8d8e0083991d09837f61a79f5c1fac
parent91c3b34625fac2a0f093a4b46a46e89f813e7972
toaster: settings set ALLOWED_HOSTS to * in debug mode

As of Django 1.8.16, Django is rejecting any HTTP_HOST header that is
not on the ALLOWED_HOST list.  We often need to reference the
toaster server via a fqdn, if we start it via webport=0.0.0.0:8000 for
instance, and are hitting the server from a laptop. This change does
reduce  the protection from a DNS rebinding attack, however, if you are
running the toaster server outside a protected network, you should be
using the production instance.

[YOCTO #10578]

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastermain/settings.py