Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] Cannot set CORS header when using an error #455

Open
Lukwos opened this issue Oct 1, 2024 · 0 comments
Open

[14.0] Cannot set CORS header when using an error #455

Lukwos opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lukwos
Copy link

Lukwos commented Oct 1, 2024

Module

base_rest

Describe the bug

When I use cors (_default_cors in controller or cors param in route) I get the appropriate header when I return a value in my service function but when I want to throw a AccessDenied error I don't find the cors header.
I don't know if it's supported to use error to send http error status like 403 in base_rest

To Reproduce

raise odoo.exceptions.AccesDenied in service function

@Lukwos Lukwos added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant