Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login #16

Closed
thomasdseao opened this issue May 31, 2018 · 6 comments
Closed

Can't login #16

thomasdseao opened this issue May 31, 2018 · 6 comments

Comments

@thomasdseao
Copy link

I cant login in application, in the network tab, the request stay in pending indefinitely...
Have you a similar error ?

@HynekS
Copy link

HynekS commented May 31, 2018

Actually, I have the exactly same issue (both the login and the register form doesn't submit, console doesn't show any errors).

@thomasdseao
Copy link
Author

Hi HynekS,

I ended up solving it by using a real virtualhost (LEMP OR WAMP) instead of php artisan serve.

This problem seems to be related with the php internal Webserver.
If you do "php -S 127.0.0.1:8000" in your public folder it wont work too. Seems like those kind of operations are stricted with the default config for php internal webserver.

@jacekk
Copy link
Contributor

jacekk commented May 31, 2018

@thomasdseao https://stackoverflow.com/a/25651196 - I think I've already pasted that within this projects issues. I guess some info in docs might be helpful.

@moeen-basra
Copy link
Owner

@jacekk.is right

You need to create a nginx local domain and upload the nginx.config.js file as follow

mix.browserSync({
    proxy: 'http://laravel-react.test' // localhost domain name
  })

@AyadiDhiaEddine
Copy link

How to do that pls ?

@moeen-basra
Copy link
Owner

which OS are you using ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants