Skip to content

API step JS/TS unmatched access method leads to the Workbench UI; mishandled access methods #671

@crtag

Description

@crtag

Having a single API endpoint defined as a "POST" handler and accessing it via "GET" results in the HTTP 200 and returned HTML for the Workbench.
Expected is an HTTP 405. Other access methods - PUT, PATCH, DELETE return 404, which is not quite right and should also return 405.

This can be handled by the infrastructure; however, this is inefficient from the maintenance/architectural point of view.
This also leads to unintended consequences when hosted behind NGINX, where a wrongly successful HTTP 200 will reveal the workbench. Would consider this a critical security issue.

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