Troubleshooting โ
...
CMS and Platforms โ
I need to use a custom component of the CMS/Platform for having an "editor experience".
Since we provide two different paradigms for most of the components, when you create the wrapper for your CMS/Platform you can switch between an "editor" version of the component or a render one. This "editor" version can be implemented with the CSS version of the component, since it allows to have a more flexible version of it, that can include the provided "contenteditable" component inside.
The other option is to use the native "editable" feature of the WebComponents and the listening to the corresponding events emitted by the component as
CustomEvent
of typeedit
with thefiledName
of the content and the newvalue
in thedetail
.In both cases, we strongly recommend to separate the SSR of the component between the "editor" version and the serving one for a better performance and avoiding problems.
.NET โ
Refused to load the image '<URL>' because violates the following Content Security Policy directive: "img-src 'self' data"
Make sure that your
web.config
file has this config setup:xml<configuration> <httpProtocol> <customHeaders> <add name="Content-Security-Policy" value="default-src 'self'; font-src *.zurich.com 'self' data: img-src *.zurich.com 'self' data:" /> </customHeaders> </httpProtocol> </configuration>