Skip to content

Index page should not return 200 on POST requests #3227

Description

@pstibrany

If user misconfigures Prometheus to push data to / (index page), Cortex returns 200 OK, so everything looks fine, but isn't.

Instead of returning 200, Cortex could return HTTP code 405 Method Not Allowed for POST requests. That would help user to find misconfiguration earlier.

Metadata

Metadata

Assignees

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