diff --git a/src/client/client.ts b/src/client/client.ts index 408d630..c2fd5bb 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -238,6 +238,7 @@ export class ScramjetClient { const prop = split.pop(); const target = split.reduce((a, b) => a?.[b], this.global); if (!target) return; + const original = Reflect.get(target, prop); this.natives[name] = original; diff --git a/src/shared/rewriters/html.ts b/src/shared/rewriters/html.ts index 520e710..1c93fa3 100644 --- a/src/shared/rewriters/html.ts +++ b/src/shared/rewriters/html.ts @@ -147,7 +147,10 @@ export const htmlRules: { // csp stuff that must be deleted nonce: "*", + crossorigin: "*", + "http-equiv": ["meta"], integrity: ["script", "link"], + sandbox: ["iframe"], csp: ["iframe"], }, { @@ -155,6 +158,7 @@ export const htmlRules: { // srcset srcset: ["img", "source"], + srcSet: ["img", "source"], imagesrcset: ["link"], }, {