Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How to test a embedded Marketing form on a localhost system?

(0) ShareShare
ReportReport
Posted on by 6

Hi there,

we have already authenticated domains for other CMS integration.

Now the developer wants to test our Marketing forms on his local CMS system.

Error: This page has a marketing form embedded on it, but the domain where this page is published isn't whitelisted for use with that form.

How to whitelist "localhost" systems?

Regards,

Martin

  • Cedric Simon Profile Picture
    Cedric Simon 10 on at
    RE: How to test a embedded Marketing form on a localhost system?

    Any update on this ? localhost still not working when added in form hosting allowed domains.

  • MarcoDieleman Profile Picture
    MarcoDieleman 5 on at
    RE: How to test a embedded Marketing form on a localhost system?

    I have the same issue. It's not possible to confirm ownership of "localhost"... Is there another way?

  • RE: How to test a embedded Marketing form on a localhost system?

    I mean the domain you are whitelisting would be "localhost" as below. Let me know if this works. 

    pastedimage1601373651013v1.png

  • MaSc4Crm Profile Picture
    MaSc4Crm 6 on at
    RE: How to test a embedded Marketing form on a localhost system?

    Hi Define,

    what do you mean by "Please try to enter the value as "localhost" as the domain" - where?

    Regards,

    Martin

  • Suggested answer
    RE: How to test a embedded Marketing form on a localhost system?

    Hi Martin,

    Thank you for your question.

    Please try to enter the value as "localhost" as the domain, it should work. Please file a support ticket if it doesn't, as this isn't an expected behavior.

    Thanks!



    Regards,

    Defne

  • MaSc4Crm Profile Picture
    MaSc4Crm 6 on at
    RE: How to test a embedded Marketing form on a localhost system?

    Hi Clofly,

    our developer has told me, that it does not work yet. Any further ideas?

    Regards,

    Martin

  • MaSc4Crm Profile Picture
    MaSc4Crm 6 on at
    RE: How to test a embedded Marketing form on a localhost system?

    Hi Clofly,

    our developer are going to check this.

    Regards,

    Martin

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: How to test a embedded Marketing form on a localhost system?

    Hi Martin,

    Could the solution work for you?

    Regards,

    Clofly

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: How to test a embedded Marketing form on a localhost system?

    Hi Martin,

    Try to copy the code of related marketing form page record and paste it to a local HTML file.

    pastedimage1598519318038v1.png

    In VS code, I use Preview on Web Server extension to run a local server to host the page and form:

    pastedimage1598519381004v2.png

    I can submit information successfully.

    pastedimage1598519522909v3.png

    I don't know why it could work even if localhost is not in whitelist.

    Anyway, you could ask the developer to try with above steps, and once it get success.

    try using marketing form API for more test.

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/marketing-form-client-side-extensibility

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans