CMS Development

TCregan
Member

Security - Content Security Policy (escaping charcters)

Hi All,

 

I'm new to hubspot so if the following question needs to be added to a different group I would appreciate if someone could be so kind as to point me in the right direction.

 

I'm working on the content security policy. I've successfully worked on it in php and asp.net previously, but hubl markup is unfamialIiar territory. The CSP is in report-only mode but browser dev tools is showing the following formatting errors.

 

TCregan_0-1656082318388.png

 

Code:

Report-To: {"group":"default","max_age":31536000,"endpoints":[{"url":"https://myreportingurl.com"}],"include_subdomains":true}; report-uri https://aspensquaredot.report-uri.com/r/d/csp/reportOnly;

 

I've tried numerous methods to escape these quote characters but to no avail. If someone could please help with this issue that would be great.

 

Thanks,

 

Tommy

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Security - Content Security Policy (escaping charcters)

Hi, @TCregan 👋 Let's see if we can get the conversation started. Hey @miljkovicmisa @Kevin-C, do you have a next step for @TCregan?

 

Thank you very much! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes