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:
@ -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
|
## Exceptions
|
||||||
|
|
||||||
This library throws two types of exceptions to indicate problems:
|
This library throws two types of exceptions to indicate problems:
|
||||||
|
Reference in New Issue
Block a user