Dispatcher CORS configuration - gap in documentation
Hi,
I've just worked through configuring our AEM dispatchers to support CORS requests and I think the Adobe documentation needs improvement. Configuring a CORS policy via system/console was straightforward enough but while direct requests to our publish instances returned a valid response (with expected "Access-Control-Allow-Origin:..." in the response headers) requests via our dispatchers did not (and no CORS request handling was being logged in our publisher's output).
I couldn't understand the issue: it turned out additional dispatcher cache/headers are required but supporting info explaining this is unintuitive. I'd seen the documentation but didn't think I was at the point of worrying about caching - since i didn't yet have a valid response to cache.
Fortunately I stumbled upon this KB video - Adobe Experience Manager Help | Developing for Cross-Origin Resource Sharing (CORS) with AEM - where the presenter says "...we add the CORS headers to the dispatcher config to allow our CORS headers to be passed through as well as cached...". Eureka!
Could the documentation be improved to make this more obvious and a more explicit CORS dispatcher configuration section be used for this setting?