-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Preflight Pending #5
Comments
Which OS and Browser are you using? |
I found a problem. I used the Dockerfile with some of my changes from #1 and needed to changed |
Yeah, the problem is that the author of #1 used ENV variable in a variable on the front end which is supposed to store the URL of back end. |
When I try to log in, I have in a browser Preflight Pending (Network DevTools), but with curl all works right. What I need to do? Is that a CORS issue?
Request
curl -X POST http://nzxt-home-pc.local:3000/api/v1/auth/login -H 'Content-Type: application/json' -d '{"username":"admin", "password":"admin"}'
Answer
{"user":{"id":1,"name":"Default Admin","username":"admin","isSuperAdmin":true,"createdAt":"2022-06-13T11:23:48.000Z","updatedAt":"2022-06-13T11:23:48.000Z"},"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoxLCJuYW1lIjoiRGVmYXVsdCBBZG1pbiIsInVzZXJuYW1lIjoiYWRtaW4iLCJpc1N1cGVyQWRtaW4iOnRydWUsImNyZWF0ZWRBdCI6IjIwMjItMDYtMTNUMTE6MjM6NDguMDAwWiIsInVwZGF0ZWRBdCI6IjIwMjItMDYtMTNUMTE6MjM6NDguMDAwWiJ9LCJpYXQiOjE2NTUxMjQ5NzUsImV4cCI6MTY1NzcxNjk3NX0.1OdbNTmz7PHlWceLyfeJbh9uh7gKC11c_63dzV3
The text was updated successfully, but these errors were encountered: