Skip to content

[19.0] [IMP] endpoint: support cors setting#133

Open
ivantodorovich wants to merge 1 commit into
OCA:19.0from
camptocamp:19.0-endpoint-cors
Open

[19.0] [IMP] endpoint: support cors setting#133
ivantodorovich wants to merge 1 commit into
OCA:19.0from
camptocamp:19.0-endpoint-cors

Conversation

@ivantodorovich
Copy link
Copy Markdown

This commits adds support for CORS setting on endpoints.

Without this, the default behavior is to disallow all origins. That's usually the opposite of what you want for an API endpoint, as you want consumers to be able to access the endpoint from their own origin.

Now, by default, the endpoint will allow all origins (default="*"), and it can be further configured for more specific restrictions.

This commits adds support for CORS setting on endpoints.

Without this, the default behavior is to disallow all origins. That's usually
the opposite of what you want for an API endpoint, as you want consumers to be
able to access the endpoint from their own origin.

Now, by default, the endpoint will allow all origins (default="*"), and it can
be further configured for more specific restrictions.
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @simahawk,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:19.0 mod:endpoint Module endpoint mod:endpoint_route_handler Module endpoint_route_handler labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:endpoint_route_handler Module endpoint_route_handler mod:endpoint Module endpoint series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants