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

Login Issues on Safari - Assistance Needed #267

Open
Karakrisz opened this issue Jan 5, 2025 · 12 comments
Open

Login Issues on Safari - Assistance Needed #267

Karakrisz opened this issue Jan 5, 2025 · 12 comments

Comments

@Karakrisz
Copy link

Karakrisz commented Jan 5, 2025

Dear Support Team

We are experiencing an issue where users are unable to log in using the Safari browser. Have you encountered this problem before?

Thank you in advance for your response.

@scottyzen

@alexookah
Copy link
Contributor

alexookah commented Jan 5, 2025

There are already similar issues with the Safari Login.
Here explained:
#212 (comment)
TLDR;
You need https and use same subdomain as the wordpress domain.
*.vercel.app domain wont work for safari

@Karakrisz
Copy link
Author

Karakrisz commented Jan 5, 2025

Here, we are dealing with a live website, and it doesn’t allow login unless I disable tracking in Safari. The mentioned website => https://www.fuggonyoazis.hu/

@alexookah
Copy link
Contributor

what's your cookie setting on WP_GRAPHQL_CORS ? None, Lax or Strict?

@Karakrisz
Copy link
Author

None, but the back end and front end are on separate domains because Vercel cannot handle PHP. Both are HTTPS. Is there any solution for making login work in Safari in this setup? I’d be grateful for the solution.

@alexookah
Copy link
Contributor

@Karakrisz

Due to Safari's security restrictions, the only way to resolve the Safari login issue is by ensuring that your WordPress site and frontend are on the same domain.

Currently, your API endpoint (https://apioazis.hu/restapi/graphql) is on a different domain than your frontend (fuggonyoazis.hu). To fix this, you need to update your DNS records with your domain provider and configure your WordPress site to use a subdomain of your main domain.

For example, you can set your WordPress site to wordpress.fuggonyoazis.hu. This way, both your frontend and WordPress site will share the same domain, which is necessary for proper functioning on Safari.

@alexookah
Copy link
Contributor

@Karakrisz
can you check if using a subdomain resolves your problem? if your issue is resolved after using a subdomain please close this issue

@Karakrisz
Copy link
Author

@alexookah
Apologies for not getting back to you sooner. I will soon have the opportunity to test this, and I will update you accordingly. Thank you so much for your help!

@ChloeThomas56
Copy link

Hello @Karakrisz
I’m about to launch my website and I’d like to know if you’ve been able to resolve your issue. Can you confirm that using a subdomain works on Safari?
Thank you!

@alexookah
Copy link
Contributor

It should work fine only if both server and frontend are sharing the same domain.

@ChloeThomas56
Copy link

Thank you for your reply. So if I have my wordpress on api.mydomain.com and my frontend on mydomain.com it will be alright?

@alexookah
Copy link
Contributor

Yes that should be just fine!

@ChloeThomas56
Copy link

Great, thank you :)

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

3 participants