Cors configuration failed

:warning:This is a template you must use to report issues. :warning:
You can also drag images, videos and include Preformatted text.

Feature(s) impacted

Smart actions response

Observed behavior

return success true message

Expected behavior

getting a cors error message on the console

Failure Logs

In this optional section, please:

Access to fetch at ‘http://localhost:3333/forest/users/actionBla?timezone=Asia%2FJerusalem’ from origin ‘https://app.forestadmin.com’ has been blocked by CORS policy: The value of the ‘Access-Control-Allow-Credentials’ header in the response is ‘’ which must be ‘true’ when the request’s credentials mode is ‘include’.



## Context
I have the following setup on my main.ts:

app.use(
cors({
origin: [/.forestadmin.com$/, ‘http://localhost:3333’],
allowedHeaders: [
‘Authorization’,
‘X-Requested-With’,
‘Content-Type’,
‘Forest-Context-Url’,
‘Access-Control-Allow-Origin’,
],
credentials: true,
}),
)


the app working fine but on running some action I'm getting the following errors response on the console:

Access to fetch at ‘http://localhost:3333/forest/users/actionBla?timezone=Asia%2FJerusalem’ from origin ‘https://app.forestadmin.com’ has been blocked by CORS policy: The value of the ‘Access-Control-Allow-Credentials’ header in the response is ‘’ which must be ‘true’ when the request’s credentials mode is ‘include’.



> Please provide in this **mandatory section**, the relevant information about your configuration:
- Project name: Ototo
- Team name: Ototo
- Environment name: development
- Agent type & version:

“meta”: {
“liana”: “forest-express-mongoose”,
“liana_version”: “8.7.1”,
“stack”: {
“database_type”: “MongoDB”,
“engine”: “nodejs”,
“engine_version”: “16.14.2”,
“orm_version”: “6.3.6”
}
}

- Recent changes made on your end if any: ...

Hi @israelor and welcome to the community !

  1. Is this the first time that you try to access this smart action ?
  2. Does the problem only appears on one smart action ?

Kind regards,

Shohan