Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

CORS handshake hides API Exceptions #74

@adam-patterson

Description

@adam-patterson

@bruce-alderson

Excuse the brevity. I want to record this before I leave so I don't forget. This is not well tested or understood yet.

What I'm seeing is a CORS request that results in an exception on the server masks the exception. Instead of seeing the exception I see Access-Control-Allow-Origin does not allow your origin ... or something to that extent: it looks like a CORS problem instead of the exception.

Possibly this is because presto does not include the CORS headers if an exception is raised, but I need to look into that further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions