Giter Site home page Giter Site logo

Comments (4)

RenaldasK avatar RenaldasK commented on May 19, 2024 2

You are NOT supposed to be able to read Secure or HttpOnly cookies on the front-end in JavaScript, these can only be accessed on the server, hence the reason they are called "Secure". Read more here or Google it: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Secure_and_HttpOnly_cookies

from ngx-cookie.

nerellamahesh avatar nerellamahesh commented on May 19, 2024

@wbgreely I am also facing the same issue . In my local everything is working fine. But i if deploy to dev, it is not working. I see that .set is also not working in dev environment. So i started using document.cookie .

Were you able to find out anything ?

Environment:

ngx-cookie version - current

Angular - 4

browser- Chrome

from ngx-cookie.

celsomtrindade avatar celsomtrindade commented on May 19, 2024

Can you providenciar the code you are using to set the cookies? Are you sure you are not setting the option secure: true?

from ngx-cookie.

bujashaka avatar bujashaka commented on May 19, 2024

I have similar kind of issue. I can set secure/httponly cookie and i can see it in new request but can't access it. $request->cookies->all(); returns null. Site has ssl and https is on.

from ngx-cookie.

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.