we want load some content from an SFMC Landingpage using AJAX on our Webpage.
But its not working in every Browser because the CORS Access-Control-Allow-Origin is missing on the SFMC Landingpage.
Is it possible to activate it?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
I found out a Solution.
Here is my Header and its working fine now.
<script runat=server> Platform.Load("core","1"); HTTPHeader.SetValue("Access-Control-Allow-Methods","POST"); HTTPHeader.SetValue("Access-Control-Allow-Origin","*"); </script>