Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] CORS_ORIGINS failing when using docker-compose

Open mateusluizfb opened this issue 10 months ago • 2 comments

Describe the bug When using a docker-compose, for some reason setting the CORS_ORIGINS like this: CORS_ORIGINS="*" doesn't work, only if you set like CORS_ORIGINS=*

To Reproduce Just run the docker-compose passing CORS_ORIGINS="*" and try to request a embeded chat from another origin.

Expected behavior To work with both CORS_ORIGINS="*" or CORS_ORIGINS=*, or any custom origin

Screenshots

Response headers using CORS_ORIGINS="*"

Screenshot 2024-04-11 at 11 52 22

Response headers using CORS_ORIGINS=*

Screenshot 2024-04-11 at 11 54 10

Setup

  • Installation docker, using docker-compose
  • Flowise Version: 1.6.0
  • OS: macOS
  • Browser chrome,

Additional context I've noticed that the problem persists with any custom origin when using docker, not sure if happens when running natively.

mateusluizfb avatar Apr 11 '24 14:04 mateusluizfb

ah okay, we should change the .env.example from # CORS_ORIGINS="*" to # CORS_ORIGINS=*

HenryHengZJ avatar Apr 11 '24 21:04 HenryHengZJ

Hello, it looks like the problem is already fixed. Maybe this issue can be closed now.

jiabaow avatar May 16 '24 02:05 jiabaow