I am currently trying to get data from my Pimcore using datahub. I have a separate VueJS app and using Vue Apollo to connect to Pimcore. When making the request to Pimcore I get a CORS issue:
Please advise to a possible error or resolution as I had the same issue with the normal Custom PHP Rest API however, I was able to resolve that issue by adding the following CORS rules to the .htaccess
Header add Access-Control-Allow-Origin “*”
Header add Access-Control-Allow-Headers “origin, x-requested-with, content-type”
Header add Access-Control-Allow-Methods “PUT, GET, POST, DELETE, OPTIONS”
Please note I am also using a docker setup where both applications are on separate containers.