Add the X-Frame-Options header to the app

This commit is contained in:
Alex Tselegidis 2023-03-08 10:48:37 +01:00
parent af1904679e
commit f3a3fb047e
1 changed files with 16 additions and 0 deletions

View File

@ -57,6 +57,22 @@ $route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
/*
| -------------------------------------------------------------------------
| FRAME OPTIONS HEADERS
| -------------------------------------------------------------------------
| Set the appropriate headers so that iframe control and permissions are
| properly configured.
|
| Options:
|
| - DENY
| - SAMEORIGIN
|
*/
header('X-Frame-Options: SAMEORIGIN');
/*
| -------------------------------------------------------------------------
| CORS HEADERS