Skip to content

Commit

Permalink
Fix CodeQL alert: Sandbox attribute is missing on the Iframe (#438)
Browse files Browse the repository at this point in the history
* Fix CodeQL alert: Sandbox attribute is missing on the Iframe

* Update
  • Loading branch information
EzioLi01 authored Sep 13, 2023
1 parent 6aae6f8 commit 64be447
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/cordova-plugin-inappbrowser/inapp-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ IframeBrowser.prototype.injectStyleFile = function (callback, args) {
IframeBrowser.prototype._createFrame = function () {
this._container = document.createElement('div');
this._iframe = document.createElement('iframe');
this._iframe.sandbox = 'allow-modals allow-popups';

// container style
var style = this._container.style;
Expand Down

0 comments on commit 64be447

Please sign in to comment.