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

Cookie SameSite defaulting to Lax instead of None in more and more browser - Cookie h_api_authcookie.v2 rejected in iFrame #9243

Open
f2boot opened this issue Jan 10, 2025 · 2 comments

Comments

@f2boot
Copy link

f2boot commented Jan 10, 2025

Hi

I am happy using pdf.js + hypothes.is in an iframe on the website of a learned society that produced many documents in pdf format.

I have noticed in the browser console that Cookie h_api_authcookie.v2 is rejected, most probably because SameSite now defaults to Lax instead of None.
That does not seem to block the use of hypothes.is in an iframe but implementing "Secure;SameSite=None" may help and recommendations would be very nice

Many thanks

@robertknight
Copy link
Member

I have noticed in the browser console that Cookie h_api_authcookie.v2 is rejected, most probably because SameSite now defaults to Lax instead of None.

That cookie is only used when you visit https://hypothes.is directly in a top-level frame. The Hypothesis client happens to be served from https://hypothes.is which would explain why the browser might try to send it unnecessarily, if it doesn't block third-party cookies (which we assume browsers may do).

@robertknight robertknight transferred this issue from hypothesis/pdf.js-hypothes.is Jan 10, 2025
@robertknight
Copy link
Member

This issue was originally filed in https://github.com/hypothesis/pdf.js-hypothes.is/issues. I moved it here because h is the application that sets the cookie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants