Comments (9)
@gdguradio I'm not sure but it seems that you mixed the URLs. Your 127.0.0.1:8080 is the front-end URL, but you're calling the back-end API which should be localhost:8080/api/register ?
But it also depends on your server setup, I can't help you with that remotely, sorry.
from laravel-vue-login-register.
Hi,
Firstly allow me to say thank you for the this wonderful sample.
I tried using both localhost:8080 and 127.0.0.1:8080 since I'm using my local machine to run the project. Both fails and says 404 on the API but when I run it directly on the browser like http://localhost:8080/api/register
it runs ok.
I hope I am making myself clear. I of writing this question I am still trying my best to figure this out.
Thank you.
from laravel-vue-login-register.
@gdguradio sorry again but I can't help with this remotely, you need to debug it locally. Maybe you're mixing GET requests and POST requests? POST requests should not work in a browser.
from laravel-vue-login-register.
@PovilasKorop hi i must have convey my message wrong. When i said I can access the api in browser directly I mean it does not return 404 . That is why I am confused why I get 404 when I use the register button.
from laravel-vue-login-register.
Are you using 'php artisan serve' to run your laravel api before opening your vue frontend?
from laravel-vue-login-register.
Hey, i encountered with this same issue. Can anyone please guide me ?
from laravel-vue-login-register.
Hey, i encountered with this same issue. Can anyone please guide me ?
Copy .env.local.example to .env.local and edit URL of your API
from laravel-vue-login-register.
@PovilasKorop hi i must have convey my message wrong. When i said I can access the api in browser directly I mean it does not return 404 . That is why I am confused why I get 404 when I use the register button.
Copy .env.local.example to .env.local and edit URL of your API
from laravel-vue-login-register.
from laravel-vue-login-register.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-vue-login-register.