Giter Site home page Giter Site logo

Comments (6)

merowin avatar merowin commented on September 22, 2024 1

I think we could close this then, because I've committed and merged the second solution a while ago.

However, when I start the vue-client, the console gives the link http://127.0.0.1:5173 , which I often use to open in browser. So the first solution would be a little bit easier for me to work with (I don't know if its the same for you).

Is there a downside to switching to the first solution?

from govariants.

merowin avatar merowin commented on September 22, 2024

I've tried around a bit, and the following has worked for me:

const LOCAL_ORIGIN = "http://127.0.0.1:5173";

curiously this did not work for me:

const LOCAL_ORIGIN = "http://localhost:5173";

Is the first a sensible solution, or should I try to make it work with the second?

from govariants.

benjaminpjones avatar benjaminpjones commented on September 22, 2024

first is a sensible solution, but it does make me wonder... the second solution doesn't work if you change what you enter in the Browser's URL bar?

from govariants.

benjaminpjones avatar benjaminpjones commented on September 22, 2024

I'm also seeing potential ipv6 issues: https://stackoverflow.com/a/25657673/5001502

idk, might pan out, but I don't think it's worth the trouble since you already have a solution.

from govariants.

merowin avatar merowin commented on September 22, 2024

first is a sensible solution, but it does make me wonder... the second solution doesn't work if you change what you enter in the Browser's URL bar?

Yeah good point, if I change the url to http://localhost:5173/ then the second solution works.

from govariants.

benjaminpjones avatar benjaminpjones commented on September 22, 2024

Either is works for me since localhost resolves to 127.0.0.1 on my computer, but yeah it sounds like a good idea to pick the one that shows up in the terminal

from govariants.

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.