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?
[0] https://github.com/pulp/pulpcore/blob/d615f23a0f59caf6c49e20cfa427d7d5e97ab4c5/pulpcore/app/settings.py#L25 On Thu, Sep 26, 2019 at 1:52 PM Bin Li (BLOOMBERG/ 120 PARK) < bli...@bloomberg.net> wrote: > 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. > > From: mikedep...@redhat.com At: 09/25/19 19:21:51 > To: Bin Li (BLOOMBERG/ 120 PARK ) <bli...@bloomberg.net> > Cc: pulp-list@redhat.com > Subject: Re: [Pulp-list] Access Pulp 3 Api from a remote machine > > The http client needs to authenticate with username (default: "admin") and > password (default: "password" or "admin"). > > On Linux, Mac and Windows, you can create a ~/.netrc (Windows: > %HOME%\_netrc ) file that httpie, curl, etc will use: > https://github.com/bagder/everything-curl/blob/master/usingcurl-netrc.md > > -Mike > > On Wed, Sep 25, 2019, 4:35 PM Bin Li (BLOOMBERG/ 120 PARK) < > bli...@bloomberg.net> wrote: > >> 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 >> 0.0.0.0:24817. Still getting a 403 Forbidden error. What else should we >> update to enable the remote api access? >> >> Thanks >> _______________________________________________ >> Pulp-list mailing list >> Pulp-list@redhat.com >> https://www.redhat.com/mailman/listinfo/pulp-list > > > _______________________________________________ > Pulp-list mailing list > Pulp-list@redhat.com > https://www.redhat.com/mailman/listinfo/pulp-list
_______________________________________________ Pulp-list mailing list Pulp-list@redhat.com https://www.redhat.com/mailman/listinfo/pulp-list