Please, use the package https://github.com/vluzrmos/lumen-cors.
Last active
August 29, 2015 14:19
-
-
Save vluzrmos/1238a0c81bfd90853f58 to your computer and use it in GitHub Desktop.
Laravel Lumen CORS Middleware
That's what i missed out the service provider for options!! nice one made my day.
And wigatana did you register the middleware and service provider inside the bootstrap/app.php file??
@wigatana Did you register the middleware and service provider?
I released a package with that files: https://github.com/vluzrmos/lumen-cors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i Try use this in my project.. still not working ..
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.123.33/lumen/public/login. This can be fixed by moving the resource to the same domain or enabling CORS.