- I have the CORS middleware on the REST server
- I have tried on Chrome, Brave and Firefox
- SwaggerUI works fine on that server
- As soon as I connect with the webapp, I get
Access to XMLHttpRequest at 'localhost:2002/chopper/$model' from origin 'http://localhost:8000' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: brave, chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.
- I have tried a number of CORS extensions for the browser. When I turn one on, I get
XData.Web.Connection.pas:207 Refused to connect to 'localhost:2002/chopper/$model' because it violates the following Content Security Policy directive: "connect-src * blob: mediastream: data:". Note that '*' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches
self
's scheme. The scheme 'localhost:' must be added explicitly.
I am getting to the pointy end. All data entry screens are done. Now comes the complex stuff and I need to be able to debug the server.
How does everyone else handle this?