Error 401 on all pages #12
Unanswered
andres-mhd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've installed the app a few times.
I'm having problems with the configuration. I'm sure the app works, but seems there are several configurations that need to be done.
I have follwed the instructions step by step, and in the last step (Update API HOST_URL in resources/js/config/constant.js file)I have added this:
HOST_URL: 'http://127.0.0.1:8000//api',
The app starts, but in the Chrome console I see this error:
GET http://127.0.0.1:8000/api/auth/user 401 (Unauthorized)
I have tried changing the app.js too but nothing works.
After each change of configuration I execue "yarn run dev".
What should I configure to make it work properly?
Is there a way I can use my local url "https://laravel-react-boilerplate.test/"?
What should I do to prepare it for server production?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions