# Cannot get the PHP example working for web app

**URL:** <https://forum.collaboraonline.com/t/cannot-get-the-php-example-working-for-web-app/1623>\
**Category:** Uncategorized\
**Created:** [February 20, 2023, 4:23pm UTC](https://forum.collaboraonline.com/t/cannot-get-the-php-example-working-for-web-app/1623 "2023-02-20T16:23:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [February 20, 2023, 4:23pm UTC](https://forum.collaboraonline.com/t/cannot-get-the-php-example-working-for-web-app/1623/1 "2023-02-20T16:23:30Z")

</div>

( forum is no letting me post anything with links so I use h-t-t-ps )

I have tried all sort of different ways, and I cannot get this to work

I have collabora working, through a proxy and url is something like h-t-t-ps://docs.domain.ca  
Collabora works fine, mattermost and pull from it, I can do discovery etc etc

However, I want to build this into my web app. So I tried using this example  
h-t-t-ps://github.com/CollaboraOnline/collabora-online-sdk-examples/tree/master/webapp/php

I just can’t get it to work  
I’ve tried local build with url domain.cc so I have put in my apache config  
I’ve tried a sandbox online with https:// I get the same results  
I’ve tied in apache config:  
Header set Content-Security-Policy: "frame-ancestors h-t-t-ps://domain.cc h-t-t-ps://domain.cc:9980 "  
Header set Content-Security-Policy: “frame-src h-t-t-ps://domain.cc h-t-t-ps://domain.cc:9980 blob:;”

I’ve tried several different settings in coolwsd. Nothing is working

Here is a screenshot of the ui

 ![Screen Shot 2023-02-20 at 10 58 25 AM](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/007e3b88fc16adf24e3bb6418ee86ae84f64bcaf.png)

---

<div class="post-metadata">

**Author:** ![gstlouis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/gstlouis/32/467_2.png) [@gstlouis](https://forum.collaboraonline.com/u/gstlouis)\
**Post date:** [March 1, 2023, 6:26pm UTC](https://forum.collaboraonline.com/t/cannot-get-the-php-example-working-for-web-app/1623/2 "2023-03-01T18:26:25Z")

</div>

I got this working. for anyone that needs more information  
[https://github.com/CollaboraOnline/collabora-mattermost/issues/72](https://github.com/CollaboraOnline/collabora-mattermost/issues/72)

---

<div class="post-metadata">

**Author:** ![bulbulbigboss](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@bulbulbigboss](https://forum.collaboraonline.com/u/bulbulbigboss)\
**Post date:** [March 5, 2023, 7:05pm UTC](https://forum.collaboraonline.com/t/cannot-get-the-php-example-working-for-web-app/1623/3 "2023-03-05T19:05:00Z")

</div>

hellop I am new here

---

<div class="post-metadata">

**Author:** ![bulbulbigboss](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@bulbulbigboss](https://forum.collaboraonline.com/u/bulbulbigboss)\
**Post date:** [March 5, 2023, 7:20pm UTC](https://forum.collaboraonline.com/t/cannot-get-the-php-example-working-for-web-app/1623/4 "2023-03-05T19:20:20Z")

</div>

Thanks for the information
