-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
CORS + Sockets for Authentication #98
Comments
The CORS error is happening because your admin dashboard (localhost:5202) is trying to send a login request to shopping-server (localhost:4201). In your
@Viveckh can you give more info on creds. |
Closing this issue @xtermsoft since the new changes should resolve your problems. |
@smaharj1 @Viveckh I am reopening this issue since the following credentials seems to be incorrect: Username: [email protected] Please refer to the screenshot attached. Also, what's up with the socket connections being refused? I made the change to |
Have you tried deleting the mongo docker images and containers? And did you pull the latest? I’ll look into socket error in a bit |
Alright, so I deleted all all the old containers and installed the latest version. Now I am able to log in, however there are a few issues:
Thanks alot for your help buddy! Really really appreciate it! |
@xtermsoft
You can also add these keys in your Note: Please open a new issue for separate issues. It is hard to track multiple issues in a closed issue |
@smaharj1 Apologies for adding multiple issues into one close issue. I'll bear this in mind. What I meant by "I keep on getting logged out of the dashboard. After some time, it just doesn't allow me to do anything and refreshing the page logs me out." is it logs me out when I am trying to do something. It all of a sudden shows me just "Catalogue" in the left-hand nav and then upon refreshing the page, I am logged out. |
Describe the bug
While running the entire stack, post filling up the values in
.evn.development
file, the whole stack loaded up, however, when an attempt is made to log into the admin dashboard, there is a CORS restriction. Please refer to the screenshot below.To Reproduce
Steps to reproduce the behavior:
docker-compose up
Expected behavior
No POST errors
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
What are the default admin credentials and how do you set new ones? I went into mongodb and created a new document following the schema from https://github.com/Viveckh/Veniqa/blob/develop/management-server/database/models/user.js#L6 here.
Please assist. Thanks.
The text was updated successfully, but these errors were encountered: