CORS Error with updateRow

The API endpoint updateRow does not work

what happens

the api responds with duplicate headers, that is leads to errors an should not happen. These headers are sent twice for the updateRow call:

Access-Control-Allow-Origin
Access-Control-Allow-Headers
Access-Control-Allow-Methods

howto reproduce

you can reproduce it with the api reference demo tool. The query will not be completed because of the Access-Control-Allow-Origin, you’ll see it in the developer console

solution

simple. Just comment out the three header lines in /opt/seatable/seatable-server-4.1.9/dtable-server/dist/src/middleware/cors.js because those headers exist already.