Skip to main content
New Member
Oct 18, 2024 9:11 AM UTC

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

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Oct 18, 2024 4:36 PM UTC

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

Translate
Esteban Bustamante
kautuk_sahni
Level 9
Nov 5, 2024 2:12 PM UTC

@nicolásmu Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni