Safari Only Issue - Content Security Policy

Hello -

I have a hubspot form embedded on a page within our website and it is throwing the following error:

The source list for Content Security Policy directive ‘script-src’ contains an invalid source: ‘‘strict-dynamic’’. It will be ignored.

It will not allow the user to submit the form. It seems to only be broken on the forms that have the CAPTCHA added to it. Is there anyway to fix this? Does this need updated on HubSpot’s end?

Please let me know if there is a workaround for this.

Thank you!

Hi @ngalek

Could you post a link to a page with this issue so the community can check it out?

Hi @dennisedson -

Thank you! The issue can be seen on this page: https://www.recesscreative.com/people/summer-design-intern I have only been able to reproduce in Safari - seems to have to do with the google recaptcha + hubspot form together.

Thanks,

Nicole

Thanks for adding the link!

I did surface this issue related to the safari error.

I also noticed that you had another error indicating hbspt is not definied :thinking:

@tjoyce @Kevin-C do you all have thoughts on this?

Hey @dennisedson and @ngalek

Similar to your find Dennis!

Both indicate that this won’t prevent the resource from being loaded. Correct me if I’m wrong @dennisedson @tjoyce

To Dennis’ point, you’re referencing the method before it has been loaded:

Try wrapping this script in a document ready function.

Thank you!