on 03-02-2016 2:41 PM
Is it possible to use JavaScript in a Paragraph Component on a page Content Slot? When the page is synced online, viewing the source reveals that the "script" tags have been removed.
Importing this content via ImpEx causes the same results.
XSS filter removes all "script" tags from all forms (including hac impex import). HMC WYSIWYG editor (and its HTML source preview) replaces "script" tags with comments. So it is not a good pleace to review content with scripts. So in order to upload scripts to CMS there are 3 ways:
prepare impex file and load whole file using hac (do not copy and paste as XSS filter will remove script tags!)
prepare impex in source code and import it during hybris init / update
disable xss filter, xss.filter.enabled=false property (can be turned off in hac config ; load impex file; enable xss filter! (xss.filter.enabled=true)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
am getting exception while loading through impex script in HAC and loading through file as well.
Thanks in advance. thirupathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm facing the issue. I need to update a CMS paragraph component which includes javascript. However script tags are replaced by comments. I tried disabling the xss filter as mentioned in previous comment but no luck !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.