Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodeteamdev/openiframe
Build Iframe. Ignore X-Frame-Options, Content-Security-Policy, X-Content-Type-Options, X-Xss-Protection etc.
https://github.com/nodeteamdev/openiframe
content-security-policy iframe iframe-api protection security security-policy x-content-security-policy x-content-type-options x-frame-options
Last synced: 2 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/nodeteamdev/openiframe
- Owner: nodeteamdev
- Created: 2019-09-04T13:23:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T10:11:50.000Z (about 2 years ago)
- Last Synced: 2024-10-10T01:05:10.438Z (2 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