Giter VIP home page Giter VIP logo

Comments (13)

ashu8912 avatar ashu8912 commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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?

from editor-backend.

algomaster99 avatar algomaster99 commented on May 12, 2024

@domoritz what error are you getting?

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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.

from editor-backend.

algomaster99 avatar algomaster99 commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

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?

from editor-backend.

algomaster99 avatar algomaster99 commented on May 12, 2024

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

from editor-backend.

domoritz avatar domoritz commented on May 12, 2024

Adding the secure flag is for #130 (comment)

from editor-backend.

algomaster99 avatar algomaster99 commented on May 12, 2024

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

from editor-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.