Skip to content

Instantly share code, notes, and snippets.

@vluzrmos
Last active Aug 29, 2015
Embed
What would you like to do?
Laravel Lumen CORS Middleware
@wigatana
Copy link

wigatana commented May 4, 2015

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.

@kiwina
Copy link

kiwina commented May 9, 2015

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??

@vluzrmos
Copy link
Author

vluzrmos commented May 11, 2015

@wigatana Did you register the middleware and service provider?

@vluzrmos
Copy link
Author

vluzrmos commented May 11, 2015

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