Elfsight Linkedin Feed Conflict with Server/Cloudflare

Hello,

I am using WordPress and Elementor Pro CMS on our site. I have a HTML Code widget at the bottom of our Home page.

When I try to add the Elfsight Linkedin Feed embed code to the HTML widget, and save/publish the page, I keep getting a 403 error (server) message, and the page fails to save any changes so long as the Elfsight embed code is applied. After opening a ticket with our host, Cloudways, they suggested the issue lies somewhere with our security settings in Cloudflare, and provided this image as proof.

Question: Does anyone know of a solution to this problem? Is there a way to whitelist the Elfsight Linkedin feed in Cloudflare? A specific security setting that can be changed? Other insights?

Thanks,

Joel F

1 Like

Hi there, @user23937 and welcome aboard :waving_hand:

Please try to replace the 1st line of the widget’s installation code with this script:

<iframe
  style="display: none"
  src="about:blank"
  onload="(()=>{let t=document.createElement('script');t.setAttribute('src','https://static.elfsight.com/platform/platform.js'),t.setAttribute('async','true'),document.head.appendChild(t)})();"
></iframe>

Try it out and let me know if it helped :slightly_smiling_face:

Great. I swapped the Script tag content from the original embed code and replaced it with with the iframe tag you provided and that seems to have worked.

Thanks for the help!

1 Like

Awesome, you’re always welcome :wink: