# Graylog docker issue

**URL:** <https://community.graylog.org/t/graylog-docker-issue/18337>\
**Category:** Graylog Central (peer support)\
**Created:** [December 29, 2020, 5:49pm UTC](https://community.graylog.org/t/graylog-docker-issue/18337 "2020-12-29T17:49:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![regex11](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/regex11/32/7754_2.png) [@regex11](https://community.graylog.org/u/regex11)\
**Post date:** [December 29, 2020, 5:49pm UTC](https://community.graylog.org/t/graylog-docker-issue/18337/1 "2020-12-29T17:49:19Z")

</div>

I’m trying to setup graylog locally using docker. Everything seems to work fine but I’m getting cors policy error when accessing http:localhost:9000

Request URL:  
[http://127.0.0.1:9000/api/](http://127.0.0.1:9000/api/)  
Referrer Policy:  
strict-origin-when-cross-origin

When I request with postman for example I’m getting:

```
{
"cluster_id": "5b56e68f-10fc-44e9-924c-3235f55b2e82",
"node_id": "2a023104-cf09-4290-bc6f-4ffac123e353",
"version": "4.0.1+6a0cc0b",
"tagline": "Manage your logs in the dark and have lasers going and make it look like you're from space!"
}
```

---

<div class="post-metadata">

**Author:** ![tmacgbay](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/tmacgbay/32/3878_2.png) [@tmacgbay](https://community.graylog.org/u/tmacgbay)\
**Post date:** [December 29, 2020, 6:19pm UTC](https://community.graylog.org/t/graylog-docker-issue/18337/2 "2020-12-29T18:19:28Z")

</div>

Cross origin has become strict in the latest version. Found the resolve for me was an easy setting to change - make sure it fits with your security stance though.

> [@4.0 upgrade - Browser access failure with DNS name but IP works](https://community.graylog.org/t/4-0-upgrade-browser-access-failure-with-dns-name-but-ip-works/17957):
>
> Upgraded to 4.0 and now modern browsers fail (Chrome, Firefox, Edge) on hostname access but I am able to connect if I use the server IP. interestingly I can access the server from the most recent version of Internet Explorer with the hostname I was using before. no https… not using certificates (yet) The Browser error message is: Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc. and wh…

---

<div class="post-metadata">

**Author:** ![regex11](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/regex11/32/7754_2.png) [@regex11](https://community.graylog.org/u/regex11)\
**Post date:** [December 29, 2020, 6:20pm UTC](https://community.graylog.org/t/graylog-docker-issue/18337/3 "2020-12-29T18:20:37Z")

</div>

Hello thanks a lot for your reply. I manage to solve it by passing:

```
 -e GRAYLOG_HTTP_ENABLE_CORS=true
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [January 12, 2021, 6:20pm UTC](https://community.graylog.org/t/graylog-docker-issue/18337/4 "2021-01-12T18:20:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
