Hello,
there is a default_filters.any file In the archetype:
How can we whether override or disable the rule as mentioned in the comment
# disable this rule to allow mapped content only
/0010 { /type "allow" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html|mp4|mov|m4v)' /path "/content/*" }
Thanks,
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
thanks for quick response, but if I set for instance by copying this rule e.g { /type "deny" method POST /extension '(css|eot|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html|mp4|mov|m4v)' /path "/content/*"
it will affect others rules in default_filters.any file, like
/0014 { /type "allow" /method "POST" /url "/content/*.form.html" }
Please apply the deny rule in the specific content tree that you need. The more granular+specific a rule is, lesser are the chances of it conflicting with the other existing rules.
Hi @EduardCh
There is a filters.any file in the same path https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/dispatcher.cloud/src/...
You can override the rule by denying or giving permissions as you need here
@EduardCh Did you find the suggestions from users 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!
Views
Replies
Total Likes
There is no good solution to disable /0010 rule
/0010 { /type "allow" /method "GET" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html|mp4|mov|m4v)' /path "/content/*" }
$include "./default_filters.any"
/0100 { /type "deny" /method "POST" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html|mp4|mov|m4v)' /path "/content/*" }
and then put one more time affected rules
/0014 { /type "allow" /method "POST" /url "/content/*.form.html" } ect
in both cases we should track changes in default default_filters.any file and keep in mind automatic cloud updates.
Views
Replies
Total Likes