Skip to main content
Participant
October 17, 2024
Answered

eventscalendar.co embed script not working

  • October 17, 2024
  • 1 reply
  • 253 views

Hi,

I created a new page by using the admin backend (Content->Pages). In the page editor, I added one row and an HTML code element to that page.


In that HTML code element, I have the following code:

<div data-events-calendar-app data-project-id="proj_id" ></div>
<script type="text/javascript" src="https://dist.eventscalendar.co/embed.js"></script>

This HTML code initailly gave a console error saying that it violates CSP regulations. That is why I added it to the csp_whitelist.xml in my custom CSP module. By doing this, the error went away and js was being fetched as you can see the following screenshot in the Network tab of developer tools.

Even after doing all this, the js is not working as expected. It should populate the upper div with the content using the proj_key. 
Any idea why is this hapenning?

PS I am new to magento.

This topic has been closed for replies.
Correct answer Anshul_Nautiyal

Hi there,

 

It seems that your query is related to Adobe Experience Manager/Magento. For specialized assistance, I recommend posting your question in the Adobe Experience Manager Forums by clicking [here]. The experts on those forums will be able to provide you with better support.

 

Regards,
^AN

1 reply

Anshul_NautiyalCommunity ManagerCorrect answer
Community Manager
October 17, 2024

Hi there,

 

It seems that your query is related to Adobe Experience Manager/Magento. For specialized assistance, I recommend posting your question in the Adobe Experience Manager Forums by clicking [here]. The experts on those forums will be able to provide you with better support.

 

Regards,
^AN