# My local (deveoppement environnement) not work and recette /prod work

**URL:** <https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342>\
**Category:** Help me!\
**Created:** [November 3, 2025, 2:07pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342 "2025-11-03T14:07:30Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soufiane](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Soufiane](https://community.forestadmin.com/u/Soufiane)\
**Post date:** [November 3, 2025, 2:07pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/1 "2025-11-03T14:07:30Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/5/5ec8dac3491991aeaf26b6e380ecc9b41ef6ae22.png)

## Feature(s) impacted

## Observed behavior

## Expected behavior

## Failure Logs

## Context

Project name: .Sergic  
Team name: gestion  
Environment name: Développement  
Agent (forest package) name & version: 9  
Database type: Postgres  
Recent changes made on your end if any: upgrade to v9

**And, if you are self-hosting your agent:**

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 3, 2025, 2:20pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/2 "2025-11-03T14:20:46Z")

</div>

Hello @Soufiane,

Do you have any logs in your agent that you can share ? Could you open devTools in Chrome and share the calls being made that result in a failure ?

---

<div class="post-metadata">

**Author:** ![Soufiane](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Soufiane](https://community.forestadmin.com/u/Soufiane)\
**Post date:** [November 3, 2025, 2:35pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/3 "2025-11-03T14:35:54Z")

</div>

Thnaks Dogan for your feedback:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/f7cf9514e70479467040d406fb009071382d857f.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4ee72b1311e3ac52129549c0f86e9e491b1f40c4.png)

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 3, 2025, 3:06pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/4 "2025-11-03T15:06:10Z")

</div>

Do you have any logs from your agent, can you confirm that it is currently running on your machine at the specified port of localhost:3310 ?

---

<div class="post-metadata">

**Author:** ![Soufiane](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Soufiane](https://community.forestadmin.com/u/Soufiane)\
**Post date:** [November 3, 2025, 3:40pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/5 "2025-11-03T15:40:57Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/7/7398160919f566286ce954683ae0aa548357b0da.png)

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 3, 2025, 4:52pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/6 "2025-11-03T16:52:38Z")

</div>

As there is no log related to the routes being called on your agent, it suggests that the calls from your browser does not reach it.

Can you do a `curl http://localhost:3310/forest` ?

---

<div class="post-metadata">

**Author:** ![Soufiane](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Soufiane](https://community.forestadmin.com/u/Soufiane)\
**Post date:** [November 4, 2025, 7:42am UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/7 "2025-11-04T07:42:14Z")

</div>

> [@anon7284711](#):
>
> [http://localhost:3310/forest](http://localhost:3310/forest)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/a/a007b9d43311bd456c33df0fee5300c08fdbd348.png)

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 4, 2025, 8:49am UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/8 "2025-11-04T08:49:12Z")

</div>

This could either be coming from a CORS misconfiguration: do you confirm that you have a proper CORS configuration on your agent like so [Upgrade to v7 | Developer Guide](https://docs.forestadmin.com/documentation/extra-help/maintain/upgrade-notes-sql-mongodb/upgrade-to-v7#authentication) as well as

```javascript
app.use(function (req, res, next) {
  if (req.headers["access-control-request-private-network"]) {
    res.setHeader("access-control-allow-private-network", "true");
  }
  next(null);
});

```

Or related to your browser which could be prohibiting calls to your localhost:

- can you try in private navigation with all extension disabled
- on another browser

Having the exact error message shown in the devTools for the preflight request would help us diagnose this issue better

---

<div class="post-metadata">

**Author:** ![FlorianByl](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florianbyl/32/8078_2.png) [@FlorianByl](https://community.forestadmin.com/u/FlorianByl)\
**Post date:** [November 4, 2025, 9:05am UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/9 "2025-11-04T09:05:32Z")

</div>

Hello,

I’m currently experiencing the same issue. My development environment was working fine last week, but this week it’s no longer functioning.

My agent is indeed listening (on [http://0.0.0.0:5001](http://0.0.0.0:5001)), and it has the following configuration:

```ts
app.use((req, res, next) => {
  if (req.headers['access-control-request-private-network']) {
    res.setHeader('access-control-allow-private-network', 'true');
  }
  next(null);
});

```

Locally, when I run the following command:

```bash
curl -i -H "Origin: https://app.forestadmin.com" http://127.0.0.1:5001/forest

```

I get the result:

```http
HTTP/1.1 204 No Content
X-Powered-By: Express
Access-Control-Allow-Origin: https://app.forestadmin.com
Vary: Origin
Access-Control-Allow-Credentials: true
Date: Tue, 04 Nov 2025 09:01:38 GMT
Connection: keep-alive
Keep-Alive: timeout=5

```

And here’s the error I get in my Chrome console (in private navigation mode):

```javascript
application-checker.ts:45 Uncaught (in promise) AgentError: Your agent is unreachable
    at n.checkAgent (application-checker.ts:45:16)
    at async g._requestLianaAuthentication (liana-session-oidc.ts:236:13)
    at async g._requestAuthentication (liana-session-oidc.ts:191:11)
    at async g.authenticateAndGetTokenFromLiana (liana-session-oidc.ts:451:11)
    at async g.refreshAuthentication (liana-session-oidc.ts:428:7)
    at async g.waitRefreshIfNecessary (liana-session-oidc.ts:489:18)
    at async g.waitRefreshIfNecessary (liana-session.ts:161:14)
    at async d.subscribeToEvent (feature.ts:41:3)
    at async e.setupController (route.ts:309:70)Caused by: CORSOrServerUnreachableFailedToFetchError: CORS or Server unreachable while fetching METHOD: GET URL: http://127.0.0.1:5001/forest
    at a.makeFailedToFetchError (error-handler.ts:96:16)
    at o.fetch (fetch.ts:25:33)
    at async n.agentHealthcheck (application-checker.ts:16:11)
    at async n.checkAgent (application-checker.ts:41:5)
    at async g._requestLianaAuthentication (liana-session-oidc.ts:236:13)
    at async g._requestAuthentication (liana-session-oidc.ts:191:11)
    at async g.authenticateAndGetTokenFromLiana (liana-session-oidc.ts:451:11)
    at async g.refreshAuthentication (liana-session-oidc.ts:428:7)
    at async g.waitRefreshIfNecessary (liana-session-oidc.ts:489:18)
    at async g.waitRefreshIfNecessary (liana-session.ts:161:14)Caused by: TypeError: Failed to fetch
    at c (chunk.583.202533576113244dbf61.js:2:22049)
    at o.fetch (fetch.ts:15:52)
    at n.agentHealthcheck (application-checker.ts:16:46)
    at n.checkAgent (application-checker.ts:42:18)
    at g._requestLianaAuthentication (liana-session-oidc.ts:236:63)
    at async g._requestAuthentication (liana-session-oidc.ts:191:11)
    at async g.authenticateAndGetTokenFromLiana (liana-session-oidc.ts:451:11)

```

Here are the packages used:

```json
"forest-express": "^10.6.6",
"forest-express-sequelize": "^9.6.0",

```

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 4, 2025, 1:36pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/10 "2025-11-04T13:36:07Z")

</div>

Hello @FlorianByl

Thanks for reaching out and sharing a detailed investigation,  
Based on the information shared, I suspect that this might be related to your browser, can you try as well:

- in private navigation with all extension disabled
- on another browser

Sharing the content of the error given by the network tab in devTools can also help further pinpoint the issue:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/dc9ceb356deb559e3384fabdf31570c6d3f5b2c9.png)

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 4, 2025, 1:58pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/11 "2025-11-04T13:58:53Z")

</div>

There is a new permissions in chrome that you might have missed/dismissed at some point, can you look if you have given the local network access permission to [app.forestadmin.com](http://app.forestadmin.com) ? [New permission prompt for Local Network Access &nbsp;|&nbsp; Blog &nbsp;|&nbsp; Chrome for Developers](https://developer.chrome.com/blog/local-network-access)

---

<div class="post-metadata">

**Author:** ![FlorianByl](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florianbyl/32/8078_2.png) [@FlorianByl](https://community.forestadmin.com/u/FlorianByl)\
**Post date:** [November 4, 2025, 2:36pm UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/12 "2025-11-04T14:36:35Z")

</div>

Good catch @anon7284711 — indeed, the issue was caused by this new Chrome security feature that now requires permission to access the local network. Once the permission is granted, it works fine.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Soufiane](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Soufiane](https://community.forestadmin.com/u/Soufiane)\
**Post date:** [November 5, 2025, 8:26am UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/13 "2025-11-05T08:26:24Z")

</div>

What steps need to be taken to obtain authorization?

---

<div class="post-metadata">

**Author:** ![FlorianByl](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florianbyl/32/8078_2.png) [@FlorianByl](https://community.forestadmin.com/u/FlorianByl)\
**Post date:** [November 5, 2025, 8:46am UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/14 "2025-11-05T08:46:06Z")

</div>

You can grant the permission directly from your browser.

If you’re using Chrome, the various permissions requested by a site should appear under a small icon to the left of your address bar. Otherwise, you can also manage them from your browser’s settings.

I found this [youtube video](https://www.youtube.com/watch?v=tq4M2NKlf4w) where you should find the answers you need.

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [November 6, 2025, 10:31am UTC](https://community.forestadmin.com/t/my-local-deveoppement-environnement-not-work-and-recette-prod-work/8342/15 "2025-11-06T10:31:32Z")

</div>

Hello @Soufiane, were you able to access your local environment after changing permissions in your browser, or are you still stuck ?
