Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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