<div dir="ltr"><div>The default value for ALLOWED_HOSTS is a wildcard[0]. Is it possible you  modified this setting by providing a PULP_ALLOWED_HOSTS environment variable or in a settings file?<br></div><div><br></div><div>[0] <a href="https://github.com/pulp/pulpcore/blob/d615f23a0f59caf6c49e20cfa427d7d5e97ab4c5/pulpcore/app/settings.py#L25">https://github.com/pulp/pulpcore/blob/d615f23a0f59caf6c49e20cfa427d7d5e97ab4c5/pulpcore/app/settings.py#L25</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 26, 2019 at 1:52 PM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net">bli111@bloomberg.net</a>> wrote:<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><div class="gmail-m_1166900347982866635rte-style-maintainer gmail-m_1166900347982866635rte-pre-wrap" style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">Mike, we have the .netrc configured.  On the pulp server, it works if we use localhost:24817 but got 403 error when use <ipaddress>:24817. It looks like the Django only allows connection to localhost. We are looking for a way to connect from a different host.<br><br><div class="gmail-m_1166900347982866635rte-style-maintainer" style="font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth""><div><div class="gmail-m_1166900347982866635bbg-rte-fold-content"><div class="gmail-m_1166900347982866635bbg-rte-fold-summary">From: <a href="mailto:mikedep333@redhat.com" target="_blank">mikedep333@redhat.com</a> At: 09/25/19 19:21:51</div>To: <a href="mailto:bli111@bloomberg.net" target="_blank"> Bin Li (BLOOMBERG/ 120 PARK ) </a><br>Cc: <a href="mailto:pulp-list@redhat.com" target="_blank"> pulp-list@redhat.com</a><br>Subject: Re: [Pulp-list] Access Pulp 3 Api from a remote machine</div><br></div><div class="gmail-m_1166900347982866635rte-internet-block-wrapper" style="background:white none repeat scroll 0% 0%;color:black;font-family:Arial,"BB.Proportional";font-size:small;white-space:normal"><div class="gmail-m_1166900347982866635rte-internet-block"><blockquote><div dir="auto">The http client needs to authenticate with username (default: "admin") and password (default: "password" or "admin").<div dir="auto"><br></div><div dir="auto">On Linux, Mac and Windows, you can create a ~/.netrc (Windows: %HOME%\_netrc ) file that httpie, curl, etc will use:</div><div dir="auto"><a href="https://github.com/bagder/everything-curl/blob/master/usingcurl-netrc.md" target="_blank">https://github.com/bagder/everything-curl/blob/master/usingcurl-netrc.md</a></div><div dir="auto"><br></div>-Mike<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, Sep 25, 2019, 4:35 PM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net" target="_blank">bli111@bloomberg.net</a>> wrote:<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><div class="gmail-m_1166900347982866635m_-4920962077604235447rte-style-maintainer gmail-m_1166900347982866635m_-4920962077604235447rte-pre-wrap" style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">Hi, We are trying to access the api on :24817 from remote server. We have add ALLOWED_HOSTS = ['*'] to settings.py and update the gunicorn to bind <a>0.0.0.0:24817</a>. Still getting a 403 Forbidden error. What else should we update to enable the remote api access?<div><br></div><div>Thanks</div></div></div>_______________________________________________<br>Pulp-list mailing list<br><a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div></div></blockquote><br></div></div></div></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>