# Cannot Access my Staging evironment

**URL:** <https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656>\
**Category:** Help me!\
**Created:** [September 13, 2023, 1:08pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656 "2023-09-13T13:08:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidHugh](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DavidHugh](https://community.forestadmin.com/u/DavidHugh)\
**Post date:** [September 13, 2023, 1:08pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/1 "2023-09-13T13:08:32Z")

</div>

## Feature(s) impacted

Cannot access Forest Admin Staging

## Observed behavior

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/3/3547ea7aa4e6304461dae827ff78ba4765a3691a.png)  
I can access production just fine, and have contacted admins, they and my team do not have this issue. The issue only occurs when I attempt to switch to staging.

## Expected behavior

Access the staging section

## Context

I have seen a similar issue in this community section and have attempted to clear the cache and use another device. I am aware there are some ongoing issues that limit access more generally but was wondering if my specific case was the same.

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [September 13, 2023, 3:42pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/2 "2023-09-13T15:42:30Z")

</div>

Hello @DavidHugh,

Thanks for reaching out 🙌

Could you please give me your project name and your name so that I can check this out on my side?

Thank you.

---

<div class="post-metadata">

**Author:** ![DavidHugh](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DavidHugh](https://community.forestadmin.com/u/DavidHugh)\
**Post date:** [September 14, 2023, 2:55pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/3 "2023-09-14T14:55:15Z")

</div>

Hi,  
The Project is GoJoe and my name is David Roast

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [September 14, 2023, 4:01pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/4 "2023-09-14T16:01:45Z")

</div>

Hello @DavidHugh,

That’s very strange indeed, you should be able to access this environment.

Could you please open your browser inspector and share both your console (look for error in red) and your network (same thing, look for red error, click on it and please open the preview tab with all elements opened)?

Thanks.

---

<div class="post-metadata">

**Author:** ![DavidHugh](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DavidHugh](https://community.forestadmin.com/u/DavidHugh)\
**Post date:** [September 14, 2023, 4:44pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/5 "2023-09-14T16:44:16Z")

</div>

Inspector:

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

Console:

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

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [September 15, 2023, 8:56am UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/7 "2023-09-15T08:56:19Z")

</div>

Hello @DavidHugh,

Can you please share the required info regarding your project?

> - Project name: …
> - Team name: …
> - Environment name: …
> - Agent (forest package) name & version: …
> - Database type: …
> - Recent changes made on your end if any: …

It’ll help me investigate.

The errors that you’re sharing are CORS errors, meaning that the server responds to `OPTIONS` requests with headers that don’t allow the real requests to be accepted.

Can you please share with us the request headers and response headers for the corresponding OPTIONS requests (they are launched just before the calls that are raising the errors)?

Thanks

---

<div class="post-metadata">

**Author:** ![DavidHugh](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@DavidHugh](https://community.forestadmin.com/u/DavidHugh)\
**Post date:** [September 15, 2023, 1:24pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/8 "2023-09-15T13:24:43Z")

</div>

Project Name: GoJoe  
Environment Name: Staging  
Agent Version: v7.1.0  
Database Type: SQL  
Recent changes: I have not made any however my Team have made large changes recently(but on a completely different project (One that is working as intended))

I’m not exactly sure what Team name is.

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [September 15, 2023, 1:31pm UTC](https://community.forestadmin.com/t/cannot-access-my-staging-evironment/6656/9 "2023-09-15T13:31:27Z")

</div>

Ok, thanks, but I would also need the headers from the options requests and responses.

Errors from CORS can occur when the server is not configured correctly, for instance if the agent is not running or if the reverse proxy on the server is not correctly configured to expose the agent.

In this case, if the servers responds a 500 or any other error, or even a 200 with the default HTML page, the CORS error appears because of missing headers.

So I would say that it’s most likely a problem with the deployment of the agent, either it does not start, it stops, or the reverse proxy is not configured to forward the right port.
