Getting an auth token from a windows web page
I have a small HTML file that I'm using to test connectivity with DataStax. When I make the POST call to get the auth token, I get a CORS error and a response code of 400, Here is the error code:
- Response {type: "cors", url: "https://190b5REDACTED82478-us-east1.apps.astra.datastax.com/api/rest/v1/auth", redirected: false, status: 400, ok: false, …}
- body: (...)
- bodyUsed: false
- headers: Headers {}
- ok: false
- redirected: false
- status: 400
- statusText: "Bad Request"
- type: "cors"
- url: "https://190b562f-adf8-4e48-9ae0-484eabc82478-us-east1.apps.astra.datastax.com/api/rest/v1/auth"
Is this even possible to do? It would have to be because many people will create web sites that need to call DataStax REST api in the background. Any guidance will be greatly appreciated!