The error: XMLHttpRequest cannot load http://dsp.foo.com:8080/rest/api_docs. The ‘Access-Control-Allow-Origin’ header has a value ‘http://dev.foo.com:8080’ that is not equal to the supplied origin. Origin ‘http://dev.foo.com’ is therefore not allowed access.
In the dsp-config I have setup CORS with * for all methods (and enabled).
The problem is that the Access-Control-Allow-Origin automatically appends the portnumber of the dsp (:8080) and therefore the origin is not the same. But I never try to access the dsp from :8080, its origin is http://dev.foo.com !
I dont know where to start debugging this, the dreamfactory/htdocs/storage/cors.config.json file is correct.