CORS Error on Web Application

Getting the following error:

XMLHttpRequest cannot load Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8043’ is therefore not allowed access.

I’m using the javascript api sample provided on this page:

You can download my specific page here.

The url: “http://localhost:8043” IS added as a Trusted Origins.
I’ve confirmed that the clientID is correct.

My App settings are attached.

Any ideas?