https://github.com/v-checha/openiframe
Build Iframe. Ignore X-Frame-Options, Content-Security-Policy, X-Content-Type-Options, X-Xss-Protection etc.
https://github.com/v-checha/openiframe
content-security-policy iframe iframe-api protection security security-policy x-content-security-policy x-content-type-options x-frame-options
Last synced: 3 months ago
JSON representation
Build Iframe. Ignore X-Frame-Options, Content-Security-Policy, X-Content-Type-Options, X-Xss-Protection etc.
- Host: GitHub
- URL: https://github.com/v-checha/openiframe
- Owner: v-checha
- Created: 2019-09-04T13:23:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T10:11:50.000Z (about 3 years ago)
- Last Synced: 2025-04-24T06:37:25.773Z (9 months ago)
- Topics: content-security-policy, iframe, iframe-api, protection, security, security-policy, x-content-security-policy, x-content-type-options, x-frame-options
- Language: JavaScript
- Size: 67.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [OpenIframe](https://github.com/ChechaValerii/openiframe#readme) 1.0.0
Build `````` and ignore X-Frame-Options, Content-Security-Policy, X-Content-Type-Options, X-Xss-Protection etc. Normally such headers prevent embedding a web page in an ``````
* [Documentation](https://doxdox.org/ChechaValerii/openiframe#openiframe.es6.js)
### openiframe.es6.js
### Install
```
```
#### OpenIframe(options)
Creates an instance of OpenIframe.
##### Parameters
| Name | Type | Description | |
| ---- | ---- | ----------- | -------- |
| options | `Object` | | |
| options.container | `DOM` `string` | - css selector or DOM element | |
| options.width | `Number` | - iframe width | |
| options.height | `Number` | - iframe height | |
| options.append | `Boolean` | - append iframe to container, prepend by default | |
| options.src | `String` | - iframe src | |
##### Examples
```javascript
new OpenIframe({
container: '#header',
height: 600,
width: 800
src: 'https://example.com',
append: true
});
```
##### Returns
- iframe Element