Jump to content

POST request from other domain

Recommended Posts


I am using a custom HTML form to POST some data to the design my night booking system. This all works fine.

When the form is sent we want to then redirect the user back to the squarespace site using:

  DMN.val('return_url', 'https://www.our-url.co.uk/thank-you');
  DMN.val('return_method', 'post');

I get the following error:

Uncaught ReferenceError: DMN is not defined
I am told this is because"make sure that your webserver and application can accept POST requests from the designmynight.com domain (including any subdomains)"
How do I go about doing this?

many thanks




Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.