Skip to content

CORS Error with updateRow #157

@herrfinke

Description

@herrfinke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions