Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jio xss #356

Merged
merged 4 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.13.0] 19th Feb, 2025
- Added encryption support for PII data
- Fixed: Jio XSS issue in web popup

## [1.12.1] 28th Jan, 2025
- Added WebNative Custom Html and Json templates Support
- Fixed duplicate session issue for extremely slow networks
Expand Down
10 changes: 5 additions & 5 deletions clevertap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11223,7 +11223,7 @@

if (search === '?ctBuilderSDKCheck') {
if (parentWindow) {
const sdkVersion = '1.12.1';
const sdkVersion = '1.13.0';
parentWindow.postMessage({
message: 'SDKVersion',
accountId,
Expand Down Expand Up @@ -13558,8 +13558,8 @@
pointerCss = 'cursor:pointer;';
}

if (displayObj.preview && displayObj['custom-editor']) {
iframe.sandbox = 'allow-scripts allow-popups allow-popups-to-escape-sandbox';
if (displayObj.preview) {
iframe.sandbox = 'allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin';
}

let html; // direct html
Expand Down Expand Up @@ -14595,7 +14595,7 @@
let proto = document.location.protocol;
proto = proto.replace(':', '');
dataObject.af = { ...dataObject.af,
lib: 'web-sdk-v1.12.1',
lib: 'web-sdk-v1.13.0',
protocol: proto,
...$ct.flutterVersion
}; // app fields
Expand Down Expand Up @@ -16341,7 +16341,7 @@
}

getSDKVersion() {
return 'web-sdk-v1.12.1';
return 'web-sdk-v1.13.0';
}

defineVariable(name, defaultValue) {
Expand Down
2 changes: 1 addition & 1 deletion clevertap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clevertap-web-sdk",
"version": "1.12.1",
"version": "1.13.0",
"description": "",
"main": "clevertap.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/util/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ const _tr = (msg, {
if (onClick !== '' && onClick != null) {
pointerCss = 'cursor:pointer;'
}
if (displayObj.preview && displayObj['custom-editor']) {
iframe.sandbox = 'allow-scripts allow-popups allow-popups-to-escape-sandbox'
if (displayObj.preview) {
iframe.sandbox = 'allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin'
}

let html
Expand Down
Loading