Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User login #7

Open
lucianaelisa opened this issue Dec 1, 2018 · 2 comments
Open

User login #7

lucianaelisa opened this issue Dec 1, 2018 · 2 comments

Comments

@lucianaelisa
Copy link

How can I do to use this plugin to login users?
After search for routes with php artisan route:list I see this url:

user/login

but cors do not working for this url...
Im using a app ionic to try do login and the error is:

from origin 'http://localhost:8100' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I dont know how can I solve this. Im working trying solve this several days
Please, could you help me?

@tobias-kuendig
Copy link
Member

How did you register the user/login route?

This plugin handles nothing more than the addition of CORS headers to all October CMS routes.

Run curl --head http://localhost:8100 and check the returned headers. Also make sure the route doesn't return an error.

@adrian-marinescu-ch
Copy link
Contributor

@lucianaelisa maybe you haven't finished configuring the plugin parameters

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

No branches or pull requests

3 participants