Hocam merhaba;
Postman'de denedigimde sorunsuz calisti fakat vue de deneyince
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8000/api/login. (Reason: expected ‘true’ in CORS header ‘Access-Control-Allow-Credentials’).
hatasi aliyorum.
Bu da benim vue post kodlarim:
sendData(){
axios.post('http://127.0.0.1:8000/api/login',
{
'email': this.email,
'password': this.passwd
})
.then( (response) => {
console.log(response);
})
}