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

Fix missing 3rd party cookie when using POST #13159

Conversation

MichaelRoosz
Copy link
Contributor

Added "xhr.withCredentials = true;" so that the third party cookie is included in POST requests.

This fixes visitor duplication when POST gets used.

@sgiehl sgiehl added the Needs Review PRs that need a code review label Jul 11, 2018
@mattab
Copy link
Member

mattab commented Aug 11, 2018

Thank you for the PR @MichaelHeerklotz 👍
we'd need to add a JS test to check this works + won't regress

@MichaelRoosz
Copy link
Contributor Author

Is testing this possible? The "withCredentials" setting does not affect same-site requests and, as I understand it, the current Matomo Javascript tests operate on the same domain as the test tracker.

In any case, it seems like a lot of work would be required to allow this kind of JS test with the current framework.
Is this really necessary for such a small one line change?

@MichaelRoosz MichaelRoosz deleted the fix_3rd_party_cookies_missing_during_POST branch October 29, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants