stacks-archive / blockstack-app-generator

Blockstack app generator
MIT License
43 stars 28 forks source link

CORS errors in blockstack:react authentication #29

Closed Zydnar closed 5 years ago

Zydnar commented 6 years ago

See: https://forum.blockstack.org/t/dealing-with-cors-errors-in-blockstack-auth-and-react/2592 fix is simple - in package.json start command for webpack dev-server should be runned at same origin as blockstack browser: "start": "webpack-dev-server --host 127.0.0.1 --port 3000",

hstove commented 5 years ago

Is your native Blockstack Browser opening on 127.0.0.1? Mine opens on localhost, and that's the behavior I've seen for everyone else, too.

Zydnar commented 5 years ago

No, it's runned at localhost. 127.0.0.1 is localhost and in this configuration it works with the browser runned at localhost. Anyway if I was the only one after using this generator eccountering this error just mark the issue as invalid. I can check it on other PC later.

hstove commented 5 years ago

Ah, I see. Yeah, since both the app and the browser are on localhost, and I haven't been able to reproduce this issue, I'm going to close. Thanks for reaching out!