RamiAwar / dataline

Chat with your data - AI data analysis and visualization on CSV, Postgres, MySQL, Snowflake, SQLite...
https://dataline.app
GNU General Public License v3.0
502 stars 49 forks source link

Docker cors fix #244

Closed RamiAwar closed 1 month ago

RamiAwar commented 1 month ago

Context

When dealing with CORS and including credentials (such as cookies, HTTP authentication, or client-side SSL certificates) in your requests, there are specific security reasons why you cannot set the Access-Control-Allow-Origin header to *.

Why can't we use "*" with credentials?

Solution

Add configurable allowed headers, with a default value of http://localhost:7377,http://0.0.0.0:7377.