I am trying use to the object tag in LWC like this

  <object   data="https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf"

Chrome Dev Console is displaying this:

Refused to load plugin data from 'https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf' because it violates the following Content Security Policy directive: "object-src 'self' https://nosoftware-ability-5363-dev-ed--c.documentforce.com".

I've enable CSP for the domain - but now wondering if Salesforce doesn't support the object-src directive.

Any one successfully used tag in LWC?


1 Answer 1


The LWC framework doesn't support many HTML tags, Object is one of them. Refer to this link to get the complete list.

You can also directly refer this github repo given in the above link. Any tag followed by (false) is not supported. For example, applet(false) means the applet tag isn't supported.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .