SITES-23772 AEM Analyzer Plugin: CORS Configuration#317
SITES-23772 AEM Analyzer Plugin: CORS Configuration#317magdalenaorlowska wants to merge 1 commit into
Conversation
|
I think this should rather be enforced via https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/master/docs/api-regions.md#configurations |
Can you elaborate how API regions can help on this use case? |
|
The description said otherwise:
But AFAIK the API regions supports regex per property: https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/master/docs/api-regions.md#properties. That can be leveraged to exclude values with adobe.com. |
Description
New Task that checks if none of the Project Configurations overrides the build-in
com.adobe.granite.cors.impl.CORSPolicyImplsettings.Developers will receive a build warning if the project-level configuration (
com.adobe.granite.cors.impl.CORSPolicyImpl~...json) includes thealloworiginoralloworiginregexpproperties that may restrict access to URLs such ashttps://experience.adobe.comorhttps://static.adobe.net.Related Issue
SITES-23772 AEM Analyzer Plugin: CORS Configuration
Motivation and Context
We have multiple customers facing CORS issues which are widely back-traceable to a custom CORS configuration including the adobe.com domain.
How Has This Been Tested?
I've run the plugin on a project created from the AEM Project Archetype + several correct & invalid configurations.
Screenshots (if appropriate):
n/a
Types of changes
Checklist: