How to update Mongodb?
I'm new to dev and I keep getting the errors as below:
[Error] Origin https://db-test-89x.pages.dev is not allowed by Access-Control-Allow-Origin. Status code: 204
[Error] Fetch API cannot load https://ap-southeast-1.aws.data.mongodb-api.com/app/data-dxseo/endpoint/data/v1/action/insertOne due to access control checks.
[Error] Failed to load resource: Origin https://db-test-89x.pages.dev is not allowed by Access-Control-Allow-Origin. Status code: 204 (insertOne, line 0)
Which I can update my db with the same code on postman. I'm so lost what wrong with my code?
![No description](https://cdn.answeroverflow.com/1173819551197171842/Screenshot_2023-11-14_at_10.52.42.png)
![No description](https://cdn.answeroverflow.com/1173819551708889251/Screenshot_2023-11-14_at_10.59.05.png)
0 Replies