CMS Development

ipcentrum
Member

Form not loading correctly on staging server

SOLVE

Hi there,

 

We're using a HubSpot form on a blog update which has stated played up.

URL: https://paul-dev.ipcentrum.com/blog/forth-test-blog-post/

 

If you scroll down around half way down the page a form should slide in from the bottom of the page. This works perfectly on my local dev environment, as seen below...

Screenshot of the form on my local environmentScreenshot of the form on my local environment

 

 

 

 

 

 

However on my staging server, the JavaScript is not creating the form. I've checked and the JS is loading and there is nothing different between the two environments.

0 Upvotes
1 Accepted solution
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Form not loading correctly on staging server

SOLVE

@ipcentrum sometimes there can be a Content-Security-Policy in use (usually in the .htaccess file) restricting external javascript and/or inline javascript.

Stefen Phelps, Community Champion, Kelp Web Developer

View solution in original post

0 Upvotes
1 Reply 1
stefen
Solution
Key Advisor | Partner
Key Advisor | Partner

Form not loading correctly on staging server

SOLVE

@ipcentrum sometimes there can be a Content-Security-Policy in use (usually in the .htaccess file) restricting external javascript and/or inline javascript.

Stefen Phelps, Community Champion, Kelp Web Developer
0 Upvotes