Modify in "/libs/cq/xssprotection/config.xml" iframesrc regexp doesnt work | Community
Skip to main content
New Participant
October 18, 2024
Question

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

  • October 18, 2024
  • 2 replies
  • 785 views

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

kautuk_sahni
Employee
November 5, 2024

@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!

Kautuk Sahni
EstebanBustamante
New Participant
October 18, 2024

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