1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-11 03:26:20 +02:00

Explain how to allow framing or embedding on third-party sites

This commit is contained in:
Marco
2017-06-22 22:06:20 +02:00
parent 47afa1c411
commit 829d5614ed

View File

@ -526,6 +526,14 @@ if (isPasswordAllowed($password)) {
}
```
### Why are other sites not able to frame or embed my site?
If you want to let others include your site in a `<frame>`, `<iframe>`, `<object>`, `<embed>` or `<applet>` element, you have to disable the default clickjacking prevention:
```php
\header_remove('X-Frame-Options');
```
## Exceptions
This library throws two types of exceptions to indicate problems: