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

Super insecure? #2

Closed
zmarffy opened this issue Nov 9, 2019 · 1 comment
Closed

Super insecure? #2

zmarffy opened this issue Nov 9, 2019 · 1 comment

Comments

@zmarffy
Copy link

zmarffy commented Nov 9, 2019

https://github.com/wix/corvid-examples/blob/b084d50a563eb10b4d1a8cbd362cc072d3b648ea/wishlist/src/page1-code.js#L36

Isn't this like super insecure because if you do one of these DB queries in the frontend, anyone can do so for any user ID via their browser's dev tools?

@Salman2301
Copy link

You can control the queries using a database setting. So, only the signed-in user can have access to their data or perform the CRUD
Wix check the permission by default, so you no need to check for the permission with a separate server function and that's why we can directly communicate with the database from the front-end securly

You can read more here
https://support.wix.com/en/article/changing-your-database-collection-permissions

@zmarffy zmarffy closed this as completed Mar 16, 2024
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

2 participants