# Newbie question : wordpress returning http CSP errors :-(

**URL:** <https://discourse.haproxy.org/t/newbie-question-wordpress-returning-http-csp-errors/7750>\
**Category:** Configuration Samples\
**Created:** [June 14, 2022, 11:17am UTC](https://discourse.haproxy.org/t/newbie-question-wordpress-returning-http-csp-errors/7750 "2022-06-14T11:17:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://discourse.haproxy.org/u/Vince)\
**Post date:** [June 14, 2022, 11:17am UTC](https://discourse.haproxy.org/t/newbie-question-wordpress-returning-http-csp-errors/7750/1 "2022-06-14T11:17:37Z")

</div>

Hi All,  
I have installed a nextcloud and wordpress servers behind a newly installed HAproxy ssl reverse proxy.

My nextcloud server works great ([nc.phoebuspokus.com](http://nc.phoebuspokus.com)) but I get CSP (Content Security Policy) errors with my wordpress website ([www.phoebuspokus.com](http://www.phoebuspokus.com))  
I am sure this is a config problem that I need to fix.  
Would you be kind enough to advise on the problem.  
Thanks in advance for your help.  
Best,  
Vincent

 ![image](https://us1.discourse-cdn.com/flex016/uploads/haproxy/original/2X/f/f303113e41f51a105c22a7d74a12078b83d944c3.png)

---

<div class="post-metadata">

**Author:** ![Baptiste](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Baptiste](https://discourse.haproxy.org/u/Baptiste)\
**Post date:** [June 14, 2022, 2:32pm UTC](https://discourse.haproxy.org/t/newbie-question-wordpress-returning-http-csp-errors/7750/2 "2022-06-14T14:32:57Z")

</div>

Typical SSL offloading problem.  
You may need to set a x-forwarded-proto or the like header to tell WordPress that client is using SSL even if itself gets traffic over http.

More information here:

> **[SSL Offloading Impact on Web Applications - HAProxy Technologies](https://www.haproxy.com/fr/blog/ssl-offloading-impact-on-web-applications/)**
>
> SSL Offloading Nowadays, it is common (and convenient) to use the Load-Balancer SSL capabilities to cypher/uncypher traffic from clients to the web application platform. Performing SSL at the Load-Balancer Layer is called « SSL...

---

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://discourse.haproxy.org/u/Vince)\
**Post date:** [June 14, 2022, 2:58pm UTC](https://discourse.haproxy.org/t/newbie-question-wordpress-returning-http-csp-errors/7750/3 "2022-06-14T14:58:03Z")

</div>

Je rentre chez moi et je teste.

Merci Baptiste !
