code-chat-br / whatsapp-api

CodeChat - WhatsApp Api

Home Page:https://docs.codechat.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to set CORS in v1.3.0

eelco2k opened this issue · comments

The .env config for setting CORS is not available in 1.3.0 i did have it in version v1.2.6

in my env.yml file:


# Choose the server type for the application
SERVER:
  TYPE: http # https
  PORT: 8086 # 443

CORS:
  ORIGIN:
    - '*'
    # - yourdomain.com
  METHODS:
    - POST
    - GET
    - PUT
    - DELETE
  CREDENTIALS: true

i could set the CORS ORIGIN

It is more appropriate to perform color settings in the reverse proxy.