I've tried above but now I'm getting an error related to cross origin referencing. I'm getting:
XMLHttpRequest cannot load https://www.thiswebsideexample/api/thing. Response for preflight has invalid HTTP status code 403
Currently I'm using the chrome exention CORS to enable CORS. Would I need to put this inside of a configuration for the application? What things would I need to change?