CORS reject API requests

Hello, so i made a html program, it use http requests to use the MongoDB API.
But all requets get deleted because of the browser not allowing requests.

From what i understood, its because MongoDB does’t allow correctly HTTP requests from other websites. Can someone help me or confirm that “bug” ?