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

[IMP] support Access-Control-Allow-Credentials #31899

Closed

Conversation

johandem
Copy link
Contributor

Description of the issue/feature this PR addresses:

Support for CORS was introduced in version 8.0 but there still lack support for
with Access-Control-Allow-Credentials header, which is required to access user
credentials.

Current behavior before PR:

No way to set Access-Control-Allow-Credentials header through routing attribute.

Desired behavior after PR is merged:

Introduce new attribute to set Access-Control-Allow-Credentials header.

related specifications

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
https://www.w3.org/TR/cors/#access-control-allow-credentials-response-header

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Support for CORS was introduced in version 8.0 but there still lack support for
with Access-Control-Allow-Credentials header, which is required to access user
credentials.

This commit aims to support that use-case.

useful links:
odoo@9cce88a
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
https://www.w3.org/TR/cors/#access-control-allow-credentials-response-header

Closes odoo#31899
@johandem johandem force-pushed the saas-12.2-cors-credentials-jde branch from bf8c6a8 to 0ad0d42 Compare March 18, 2019 08:13
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Mar 18, 2019
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 18, 2019
@pedrobaeza
Copy link
Collaborator

Coming to this through codetriage.com. Is this still relevant?

@johandem johandem closed this Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants