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

Sign in does not work on Safari #130

Closed
domoritz opened this issue Feb 13, 2020 · 13 comments
Closed

Sign in does not work on Safari #130

domoritz opened this issue Feb 13, 2020 · 13 comments
Labels
bug Something isn't working

Comments

@domoritz
Copy link
Member

Somehow, I cannot sign in on safari. After going through the login process on github, I don't get signed in on the editor.

@ashu8912
Copy link
Member

Hey @domoritz I am not able to reproduce this mine login works fine
Screenshot 2020-02-14 at 3 23 58 AM

@domoritz
Copy link
Member Author

Hmm, let me try again. I was trying something else and it didn’t work for me.

@domoritz
Copy link
Member Author

No, does not work. I'm on Safari 13.1. Maybe this is some new restriction on cookies. I do get a warning in Chrome

Screen Shot 2020-02-14 at 10 20 50

@domoritz
Copy link
Member Author

Ahh, I think the issue is that our cookie is a third party cookie.

@domoritz domoritz transferred this issue from vega/editor Feb 14, 2020
@domoritz
Copy link
Member Author

The issue is probably that we need to set cookies to be secure.

@domoritz
Copy link
Member Author

I think we need to set https://github.com/vega/editor-backend/blob/master/src/app.ts#L77 but somehow I cannot log in anymore after I uncomment this line.

@algomaster99 Can you help me here?

@domoritz domoritz added the bug Something isn't working label Feb 15, 2020
@algomaster99
Copy link
Member

@domoritz what error are you getting?

@domoritz
Copy link
Member Author

There seem to be two separate issues.

  1. Chrome warns us about unsafe cookies. We should enable safe cookies (but when I do it, login doesn't work for some reason).
  2. When I check whether I am logged in in Chrome in incognito or Safari (on my machine) the response is always that I am not logged in.

Screen Shot 2020-02-15 at 19 04 53

Screen Shot 2020-02-15 at 19 05 03

Any idea what's going wrong? It looks like cors is not working as expected.

@algomaster99
Copy link
Member

@domoritz Chrome in incognito works fine for me. For Safari, shall I just check it on some iPhone?

@domoritz domoritz changed the title Sign is does not work on Safari Sign in does not work on Safari Feb 27, 2020
@domoritz
Copy link
Member Author

I noticed that I can log in if I disable this setting to prevent cross-site tracking.

Screen Shot 2020-02-27 at 09 40 55

Maybe let's focus on enabling safe cookies (https://github.com/vega/editor-backend/blob/master/src/app.ts#L77) for now and look at this issue later. Can you look into this?

@algomaster99
Copy link
Member

@domoritz secure: true is only responsible for this behavior https://stackoverflow.com/a/40324493/11751642. What problem are you facing exactly?

@domoritz
Copy link
Member Author

Adding the secure flag is for #130 (comment)

@algomaster99
Copy link
Member

@domoritz 44ed970 fixes this.
Please note my comment there though.

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

3 participants