Skip to content

Commit

Permalink
impr(docs): added security info in demo and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yass-aircall authored and litil committed Jun 7, 2023
1 parent 251455b commit 9adef37
Show file tree
Hide file tree
Showing 6 changed files with 2,985 additions and 5,289 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ You can remove a listener added by `on` with this method.

## `<iframe>` authorizations

> **Notice Regarding Iframing Authorization:** for *security* purpose, we are now whitelisting domains that are iframing us. If you are a customer, please contact [support](https://support.aircall.io/) in order to whitelist your requested domain(s).<br>
If you are a *partner* creating an integration, you can ask for permission using [email protected].

Please be aware that `aircall-everywhere` will generate an iframe with following `allow` attributes.

```html
Expand Down
2 changes: 1 addition & 1 deletion demo/demo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ pre {
}

// specific stuff
#installation {
#iframing-authorization {
padding-top: 40px;
}

Expand Down
11 changes: 10 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ <h1>Aircall Everywhere SDK</h1>
</div>

<div class="container">
<h2 id="installation">Installation</h2>
<h2 id="iframing-authorization">Iframing Authorization</h2>

<div class="row">
<p>
For security purposes, we are now whitelisting domains that use Aircall Everywhere SDK. If you are a customer, please contact <a href="https://support.aircall.io/">Aircall Support</a>.<br>
If you are a partner creating an integration, you can ask for permission using [email protected].
</p>
</div>

<h2>Installation</h2>

<div class="row">
<div class="left">
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "aircall-everywhere",
"version": "1.8.0",
"version": "1.8.1",
"description": "Library to embed and communicate with aircall-phone in any webpage",
"main": "dist/index.js",
"scripts": {
"start": "webpack-dev-server --config scripts/webpack/webpack.dev.js --open",
"build": "webpack --config scripts/webpack/webpack.build.js",
"prepublishOnly": "./scripts/publish.sh",
"test": "jest",
"test": "jest --env=jsdom",
"test-watch": "jest --watch",
"coverage": "jest --coverage"
},
Expand Down Expand Up @@ -36,22 +36,22 @@
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@babel/template": "^7.10.4",
"@babel/types": "^7.11.5",
"babel-loader": "^8.1.0",
"@babel/types": "7.22.4",
"babel-loader": "9.1.2",
"babel-plugin-rewire": "^1.2.0",
"copy-webpack-plugin": "^6.2.0",
"css-loader": "^4.3.0",
"css-loader": "6.8.1",
"gh-pages": "^3.1.0",
"html-webpack-plugin": "^4.5.0",
"html-webpack-plugin": "5.5.1",
"husky": "^4.3.0",
"jest": "^26.4.2",
"node-sass": "^4.14.1",
"prettier": "^2.1.2",
"pretty-quick": "^3.0.2",
"sass-loader": "^10.0.2",
"style-loader": "^1.3.0",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
"sass": "^1.62.1",
"sass-loader": "13.3.1",
"style-loader": "3.3.3",
"webpack": "5.85.1",
"webpack-cli": "5.1.3",
"webpack-dev-server": "4.15.0"
}
}
3 changes: 1 addition & 2 deletions scripts/webpack/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = () => {
};

const _devServer = {
contentBase: path.join(__dirname, '../../demo_dist'),
static: path.join(__dirname, '../../demo_dist'),
compress: true,
port: 8080,
};
Expand Down Expand Up @@ -101,6 +101,5 @@ module.exports = () => {
mode: _mode,
target: _target,
context: _context,
watch: true,
};
};
Loading

0 comments on commit 9adef37

Please sign in to comment.