Can't make app work with BowserSync or other tools
gagishmagi opened this issue · 4 comments
This is a bug | feature request.
Prerequisites
- Are you running the latest version?
- Are you reporting to the correct repository?
- Did you check the documentation?
- Did you perform a cursory search?
Description
I am not able to use browsersync or live server or live reload.
After fixing the issue with CORS which doesn't like that the headers:
x-requested-with, x-csrf-token by minimum
Steps to Reproduce
- Installed browsersync and browsersync webpack modules with npm
- (optional) add a plugin to favorite IDE
- Run the command : npm run watch
- Created CORS middleware and use it globally or only for api routes...
- (optional) Or install some laravel cors package.
- Allow CORS domains , methods, headers and additional two ones: x-requested-with, x-csrf-token also can allow x-xsrf-token
for angular apps. - Try to go to localhost:PORT(default nodejs 3000) you will get a login page.
- Try to login with Admin account or any other and you will be Unauthorized and redirected back to login.
Expected behavior
After successful login on localhost:3000 redirect to home page.
Actual behavior
After successful login on localhost:3000 get "401 Unauthorized" and redirect to login.
Thank you for your help.
I have 0 experience with BrowserSync.
:-(
It's definitely not an issue with browser sync it's something in the app that has to do with the authorization.
I guess it's just lack of my understanding of the authorization process in the app.. :-)
The only additions that Enso makes over Laravel's provided boilerplate is checking that the user is Active and enforcing the password policy. Sorry that I cannot be of more help than that