Skip to content

Commit bc1a47f

Browse files
Minor fine-tuning related to how we allow iframes to use the public booking page.
1 parent 295c96e commit bc1a47f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

application/config/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
|
7474
*/
7575

76-
// header('X-Frame-Options: SAMEORIGIN');
76+
header('X-Frame-Options: SAMEORIGIN');
7777

7878
/*
7979
| -------------------------------------------------------------------------

application/controllers/Booking.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ public function index(): void
127127
return;
128128
}
129129

130+
header('X-Frame-Options: ALLOWALL'); // We need this for iframe integrations.
131+
130132
$company_name = setting('company_name');
131133
$company_logo = setting('company_logo');
132134
$company_color = setting('company_color');

0 commit comments

Comments
 (0)