Landing page modal question | Community
Skip to main content
New Participant
December 22, 2022
Solved

Landing page modal question

  • December 22, 2022
  • 1 reply
  • 2341 views

Hello! I have a Marketo landing page for a gated asset that works with a modal (lightbox) as TY page conditioned to whether the form submitter is a member or not. Members get a modal with the link to the downloadable and non-members get a modal with the link to the upgrade page. We've been using these for almost a year with no issues, and all of the sudden the modal only works one way, and even if you're a member eligible to download the asset, the non-member modal comes up asking to upgrade. This started happening like a week ago out of nowhere and can't seem to figure out the reason as everything looks OK with the settings and nothing has been updated on our end. Any ideas?

 

Many thanks! 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

The code that’s calling your “Consultants” API is extremely messy and has a bunch of race conditions.

 

But the direct cause is that this URL does not pass the CORS security check:

 

https://www.devex.com/api/public/consultants?email=<email address>

 

 

pages.devex.com calling www.devex.com is a cross-origin request. So www.devex.com needs to include the correct access-control-allow-origin header.

1 reply

SanfordWhiteman
New Participant
December 22, 2022

What is a “member”? Is that a field on the form?

 

And more generally we need to have a link to the page w/the form, not possible to troubleshoot just in our heads!

aparisalAuthor
New Participant
December 22, 2022

Thanks, Sanford! This is the page.

The membership level is not in the form; I guess it collects the form submitter's member level via API call from the email address used? Sorry, not entirely sure, not a developer myself :/.

 

Let me know if you need any additional details and thanks again! 

 

 

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
December 23, 2022

The code that’s calling your “Consultants” API is extremely messy and has a bunch of race conditions.

 

But the direct cause is that this URL does not pass the CORS security check:

 

https://www.devex.com/api/public/consultants?email=<email address>

 

 

pages.devex.com calling www.devex.com is a cross-origin request. So www.devex.com needs to include the correct access-control-allow-origin header.