Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

simply does not work #44

Closed
VickG opened this issue May 8, 2015 · 7 comments
Closed

simply does not work #44

VickG opened this issue May 8, 2015 · 7 comments

Comments

@VickG
Copy link

VickG commented May 8, 2015

I followed the installation procedure. I am getting the same error.

Please advise.

@andybeak
Copy link

I can confirm that it does work with my current Laravel 5 installation.

The problems that I did encounter were as a result of my javascript calls.

I'm running nginx/hhvm and did not need to make any server configuration changes.

@esneeringer
Copy link

I have it up and running with Laravel 5 as well. Working great. What is the error you are receiving?

@sicsol
Copy link

sicsol commented May 26, 2015

I'm getting the following error. I'm using an angular project to make the call.

I'm using the default cors.php configuration file with L5

XMLHttpRequest cannot load http://localhost:8000/api/auth/staff. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 500.

@sicsol
Copy link

sicsol commented May 26, 2015

I figures it out. It was because of my CSRF token mismatch

@juanmanavarro
Copy link

@sicsol can you explain what you did?

@sicsol
Copy link

sicsol commented Jun 10, 2015

in kernel.php i did the following

under protected $middleware i commented out

// 'App\Http\Middleware\VerifyCsrfToken',

under protected $routeMiddleware i added a new filter name

'csrf' => 'App\Http\Middleware\VerifyCsrfToken',

@barryvdh
Copy link
Member

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

No branches or pull requests

6 participants