Giter Club home page Giter Club logo

Comments (9)

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on December 23, 2011 11:21:17
You can try using 127.0.0.1 instead of localhost which is sure to work. I have fixed the bug and now should work also on localhost. The fix will be included in version 0.14.5 between today and tomorrow. Can you confirm it works?

from edit-this-cookie.

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on December 25, 2011 18:31:39
Sorry, doesn't work with 0.14.5.

from edit-this-cookie.

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on December 27, 2011 17:05:37
It seems like a workaround. Looks like on localhost when creating a cookie, it uses 127.0.0.1 for the domain which is okay for localhost, but something like that won't work when you have other name based virtual hosts. For example, I also have a local web server that is attached to the domain dev (ie http://dev/index.php) and so in a case like that, I cannot set a cookie for the domain 'dev'...unless i pull up the javascript console and create it myself.

from edit-this-cookie.

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on December 27, 2011 17:39:27
Thing is... this used to work... how hard is it to revert to the code which did the job correctly?

from edit-this-cookie.

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on December 29, 2011 15:57:29
reverted

from edit-this-cookie.

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on January 16, 2012 20:31:01
I think this is still broken. It has never worked for me. Using

Edit This Cookie 0.14.8
chrome 16.0.912.75 m

Trying to add a cookie to localhost:8080

I have tried 127.0.0.1, 127.0.0.1:8080, localhost, localhost:8080

from edit-this-cookie.

fcapano avatar fcapano commented on July 1, 2024

From [email protected] on July 31, 2012 14:35:11
Adding a Localhost cookie does not work for me either. I am using a port of 3000 on my local machine. I am using version 0.31. However if i use 127.0.0.1 with no port in the 'add cookie' interface it does work

recap:
localhost:3000 addCookie fails
localhost addCookie fails
127.0.0.1:3000 addCookie fails
127.0.0.1 addCookie success!

Edit This Cookie 0.31
chrome: 20.0.1132.57 m

from edit-this-cookie.

gabrielf avatar gabrielf commented on July 1, 2024

You can set a cookie on localhost by removing the domain from the domain text field. Not very obvious but cookies cannot be set with an explicit domain on localhost. See for example: http://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain

from edit-this-cookie.

gabrielf avatar gabrielf commented on July 1, 2024

My suggestion is that setting a cookie when on localhost should not prefill the domain field.

from edit-this-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.