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 !
If I use curl and forge a request and specify -H ‘Origin: http://dsp.foo.com’ the response is: “Access-Control-Allow-Origin: http://foo.com:8080”. This must clearly be wrong ?
no, there is no proxying, the dsp is setup at server:8080 and the web is served from server:80.
When the dsp creates the Access-Control-Allow-Origin header it opens for origin ‘server:8080’ but this fails because the origin is not server:8080 but ‘server’ or ‘server:80’
I have made a quick dirty workaround in vendor/dreamfactory/lib-php-common-platform/src/Yii/Components/PlatformWebApplication.php to prevent it from appending the dsp-port-nummer to the client-origin.