I’m using http://localhost:8000 for local development with the Realm SDK. Some research indicated the title error above may be CORS related so I input http://localhost:8000 in Allowed Request Origins in Realm App Services | App Settings, but it hasn’t made a difference and I continue to get the same problem.
What else can I try to get past this error?
Should I try the ‘hosting’ option provided and continue my development via Realm App Services (this would involve uploading every change I make, adding overhead)?
thanks …
p.s. I can, of course, add the relevant .html .js here code if that would be helpful(?) …
SOLVED. I was getting network errors that may/may not have been directly CORS related as a result of trying different solutions to getting a simple login page working. The async code suggested by mongodb was close but didn’t work with a submit button the way I expected/required without some important tweaks. This is what I needed on the index.html page: