Expand my Community achievements bar.

Modify in "/libs/cq/xssprotection/config.xml" iframesrc regexp doesnt work

Avatar

Level 1

Good morning,

I am using the cloud version of AEM, and I want to modify the iframesrc regexp in the /libs/cq/xssprotection/config.xml file.

I did the overlay from /libs to /apps in "http://localhost:4502/crx/de/index.jsp".
I successfully modified the regexp and saved it, everything went well up to this point.
However, I haven't been able to import the changes into the project, so I can't push the change to production environments.
Can someone help me understand why the changes are not reflected in the project?

Best regards,

Thank you!

1 Reply

Avatar

Community Advisor

Hi, 

That's because those paths need to be included in the filter.xml file, which specifies which parts of the repository can be synchronized. By default, these filters won’t be available in the filter.xml file. You can read more about it here: Apache Jackrabbit FileVault Filters.

What you need to do is ensure that your ui.apps/src/main/content/META-INF/vault/filter.xml file contains the following entry:

<filter root="/apps/cq/xssprotection/"/>

 

Hope this helps



Esteban Bustamante