<html><head><title></title></head><body><!-- rte-version 0.2 9947551637294008b77bce25eb683dac --><div class="rte-style-maintainer rte-pre-wrap" data-color="global-default" bbg-color="default" data-bb-font-size="medium"bbg-font-size="medium" style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);">Updated /etc/pulp/settings.py to use ALLOWED_HOSTS = ['*'] and restarted all services. Still getting 403 errors.<div>Also tried adding PULP_ALLOWED_HOSTS to /etc/systemd/system/multi-user.target.wants/pulp-api.service and replacing localhost with 0.0.0.0 as below</div><div>Environment=PULP_ALLOWED_HOSTS="['*']"</div><div>ExecStart=/usr/local/lib/pulp/bin/gunicorn pulpcore.app.wsgi:application \</div><div>          --bind '0.0.0.0:24817' \</div><div><div>--access-logfile</div><div><br></div><div>The problem persists.</div><div><br><br><div class="rte-style-maintainer" data-color="global-default"bbg-color="default" data-bb-font-size="medium" bbg-font-size="medium" style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);"><div><div class="bbg-rte-fold-content" data-header="From: brocha@redhat.com At: 10/02/19 10:37:17" data-digest="From: brocha@redhat.com At: 10/02/19 10:37:17" style=""><div class="bbg-rte-fold-summary">From: brocha@redhat.com At: 10/02/19 10:37:17</div>To: <a spellcheck="false" bbg-destination="mailto:bli111@bloomberg.net" href="mailto:bli111@bloomberg.net"> Bin Li (BLOOMBERG/ 120 PARK ) </a><br>Cc: <a spellcheck="false"bbg-destination="mailto:mikedep333@redhat.com" href="mailto:mikedep333@redhat.com"> mikedep333@redhat.com</a>, <a spellcheck="false"bbg-destination="mailto:pulp-list@redhat.com" href="mailto:pulp-list@redhat.com"> pulp-list@redhat.com</a><br>Subject: Re: [Pulp-list] Access Pulp 3 Api from a remote machine</div><br></div><div class="rte-internet-block-wrapper" style="background: white; color: black; font-family: Arial, "BB.Proportional"; font-size: small; white-space: normal;"><div class="rte-internet-block"><blockquote><div dir="ltr"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>We do have ALLOWED_HOSTS = '*' in /etc/pulp/settings.py</div></blockquote><div><br></div><div>This variable must be a list, not sure if that is the problem.</div><div><br></div><div><font size="4"><span style="font-family:monospace">ALLOWED_HOSTS = ['*']</span></font></div><div><br></div><div>As environment variable it would be <span style="font-family:monospace">export PULP_ALLOWED_HOSTS="['*']"</span><br></div><div><br></div><div><a spellcheck="false" bbg-destination="rte:bind" class=""href="https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts"data-destination="rte:bind">https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts</a></div><div><br></div></div></blockquote><br></div></div></div></div></div></div></body></html>