# Your admin backend is unreachable. Please check that it is running and respond to http://localhost:3000

**URL:** <https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698>\
**Category:** Help me!\
**Created:** [January 22, 2021, 3:05pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698 "2021-01-22T15:05:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/joe_marc/32/1388_2.png) [@Joe\_Marc](https://community.forestadmin.com/u/Joe_Marc)\
**Post date:** [January 22, 2021, 3:05pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/1 "2021-01-22T15:05:46Z")

</div>

Hello i have some trouble accessing to my admin

## Expected behavior

I’m just expecting to acces normally to my admin in dev environment.  
I’m under the rails gem forest\_liana . I’ve never had this error before.

I’m stuck on this page without any powers to do anything to change the env key or else…

 ![Capture d’écran 2021-01-22 à 16.07.38](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/a/a3f793172d20cc3e0c150ab5379046faad4ae179.png)

## Actual behavior

The actual behavior is that when it’s asking me to enter my password to unlock the admin i have the message saying that ‘Your admin backend is unreachable. Please check that it is running and respond to [http://localhost:3000](http://localhost:3000).’

It happened the first time when i logged out to another forest project and it’s unavailable since this moment.

Here are the logs of my server running =\>

 ![Capture d’écran 2021-01-22 à 16.04.41](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/f6347c255dfb8fc2305196bdcf40bb1a749c3343.png)

- Package Version: In app rails gem
- Database Dialect: PostgreSQL
- Project Name: AbaShoshin

Thank you in advance for your help .

Joé

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [January 22, 2021, 3:29pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/2 "2021-01-22T15:29:24Z")

</div>

Hi @Joe_Marc, and welcome to our community.

Do you have any errors in your browser console or in the network tabs?  
Also, does this happen on all of your environments or on a specific one ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Joe\_Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/joe_marc/32/1388_2.png) [@Joe\_Marc](https://community.forestadmin.com/u/Joe_Marc)\
**Post date:** [January 22, 2021, 3:36pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/3 "2021-01-22T15:36:05Z")

</div>

Hello @anon39848301 , Thanks for your response.

Only this one apparently but on another projet too on dev env.  
Here are the browser console logs, i didn’t change anything, and my CORS configuration is fully open …

 ![Capture d’écran 2021-01-22 à 16.34.36](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/c/c67f456b4a5116c5b4adf70f8457d563db9148ec.png)

Network tab =\>

 ![Capture d’écran 2021-01-22 à 16.36.47](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4b12bd20f8cdb3cc85f2d377fb20165baeb7065d.png)

Thanks

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [January 22, 2021, 3:47pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/4 "2021-01-22T15:47:12Z")

</div>

> my CORS configuration is fully open

What do you mean by that? Did you configure something like `rack-cors` within your app?

From what I can see [here](https://github.com/ForestAdmin/forest-rails/blob/master/lib/forest_liana/engine.rb#L20), the `forest_liana` gem should set everything needed to make this work.

Also, does your app relies on a `CORS_ORIGINS` environment variable ?

---

<div class="post-metadata">

**Author:** ![Joe\_Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/joe_marc/32/1388_2.png) [@Joe\_Marc](https://community.forestadmin.com/u/Joe_Marc)\
**Post date:** [January 22, 2021, 3:50pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/5 "2021-01-22T15:50:13Z")

</div>

Yes i configured rack-cors here is my config and the one that was working before

```javascript
config.middleware.use Rack::Cors do
      allow do
        origins '*'
        resource '*',
                 headers: :any,
                 methods: [:get, :post, :options, :delete, :put, :patch]
      end
    end

```

Yes my app relies on `CORS_ORIGINS` .

---

<div class="post-metadata">

**Author:** ![Joe\_Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/joe_marc/32/1388_2.png) [@Joe\_Marc](https://community.forestadmin.com/u/Joe_Marc)\
**Post date:** [January 22, 2021, 3:51pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/6 "2021-01-22T15:51:20Z")

</div>

> From what I can see [here](https://github.com/ForestAdmin/forest-rails/blob/master/lib/forest_liana/engine.rb#L20), the `forest_liana` gem should set everything needed to make this work.  
> This is why i don’t really understand the problem 😕

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [January 22, 2021, 4:05pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/7 "2021-01-22T16:05:42Z")

</div>

It seems like the error indicate that the received value for the request `/forest/session` is the wildcard value for `Access-Control-Allow-Origin`. [This stack overflow](https://stackoverflow.com/questions/39286997/google-chrome-a-wildcard-cannot-be-used-in-the-access-control-allow-origin) seems to cover this topic.

I would suggest not to use the `*` value, even in dev.  
If I understood the error correctly, your value overrides the one in `forest_liana`, that’s why the call seems to fail.

---

<div class="post-metadata">

**Author:** ![Joe\_Marc](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/joe_marc/32/1388_2.png) [@Joe\_Marc](https://community.forestadmin.com/u/Joe_Marc)\
**Post date:** [January 22, 2021, 4:13pm UTC](https://community.forestadmin.com/t/your-admin-backend-is-unreachable-please-check-that-it-is-running-and-respond-to-http-localhost-3000/1698/8 "2021-01-22T16:13:26Z")

</div>

Okay that solved it. Apparently due to the fact that i change the cors after i logged in the forest app it didn’t take the changes on the server reboots.  
So when i changed accounts it asked me back my password and then took in consideration my previous CORS update.

Thanks a lot for you help 🙂
