# CORS header issue on v7

**URL:** https://community.forestadmin.com/t/cors-header-issue-on-v7/2539
**Category:** Help me!
**Created:** [May 21, 2021, 1:14pm UTC](https://community.forestadmin.com/t/cors-header-issue-on-v7/2539 "2021-05-21T13:14:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nikola-farshore](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nikola-farshore/32/2292_2.png) [@nikola-farshore](https://community.forestadmin.com/u/nikola-farshore)
#### Post date: [May 21, 2021, 1:14pm UTC](https://community.forestadmin.com/t/cors-header-issue-on-v7/2539/1 "2021-05-21T13:14:36Z")

</div>

## Behavior

We are getting error on the dashboard when trying to use one of our actions: import data from CSV

## Failure Logs

> **[Google Docs: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F1SDFex7hlNIDQm-AoO7_BRYWLvcGhPkvo0W8qslBgeok%2Fedit%3Fusp%3Dsharing&dsh=S-1271615599%3A1764325059560419&followup=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F1SDFex7hlNIDQm-AoO7_BRYWLvcGhPkvo0W8qslBgeok%2Fedit%3Fusp%3Dsharing&ifkv=ARESoU2soFiknV70LLWK9RiUA0OW-9O8ddl2KBpW0ev-BlDjvNx71n7GROHdH6MlGsrVWc7PznmnjQ&ltmpl=docs&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin)**
>
> Access Google Docs with a personal Google account or Google Workspace account (for business use).

---

<div class="post-metadata">

### Author: ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)
#### Post date: [May 21, 2021, 1:20pm UTC](https://community.forestadmin.com/t/cors-header-issue-on-v7/2539/2 "2021-05-21T13:20:48Z")

</div>

Hello @nikola-farshore,

Welcome to our community.

First, can I ask you to remove your `FOREST_ENV_SECRET` and `FOREST_AUTH_SECRET` from the publicly shared document as it is confidential information that you should not share?

In the stack trace you provided, there is an error  
`TypeError: Cannot read property 'replace' of undefined`

Could you maybe check if it’s not simply your function that fails and your browser is wrongly assuming that’s a CORS error?

Thank you

---

<div class="post-metadata">

### Author: ![nikola-farshore](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nikola-farshore/32/2292_2.png) [@nikola-farshore](https://community.forestadmin.com/u/nikola-farshore)
#### Post date: [May 21, 2021, 1:25pm UTC](https://community.forestadmin.com/t/cors-header-issue-on-v7/2539/3 "2021-05-21T13:25:59Z")

</div>

> [@anon90145840](#):
>
> First, can I ask you to remove your `FOREST_ENV_SECRET` and `FOREST_AUTH_SECRET` from the publicly shared document as it is confidential information that you should not share?

I have removed it right after I have noticed that it was shared by our developers. Thanks for that.

> [@anon90145840](#):
>
> Could you maybe check if it’s not simply your function that fails and your browser is wrongly assuming that’s a CORS error?

Might be the case, let me try.

Thank you
