Skip to content

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

Merged
OCA-git-bot merged 2 commits into
OCA:19.0from
camptocamp:19.0-endpoint-cors
Jun 3, 2026
Merged

[19.0] [IMP] endpoint: support cors setting#133
OCA-git-bot merged 2 commits 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
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@simahawk
Copy link
Copy Markdown
Contributor

simahawk commented Jun 3, 2026

/ocabot merge minor
@ivantodorovich can you backport to 18 pls?

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 19.0-ocabot-merge-pr-133-by-simahawk-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 3ce1e15 into OCA:19.0 Jun 3, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 5038b3e. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants