NebulaServices / Dynamic

[BETA] The new generation of interception proxies.
https://npmjs.com/@nebula-services/dynamic
GNU Lesser General Public License v3.0
55 stars 129 forks source link

Failing to rewrite In iFrames #55

Open rxfe-a opened 7 months ago

rxfe-a commented 7 months ago

What the issue?

It seems that the Service Worker. Unregisters itself I am using the default SW included in the static files but that's not a problem neccesarilly. Whenever you run or create dynamic in a iframe. It will fail to rewrite the entire HTML page.

Fixes

It seems for me atleast that the NPM package version has fixed alot of issues. But this is a 50/50 chance of working

How to somewhat replicate

just run it in a iFrame. (Both redirecting from a HTML page inside of the iframe and Registering it from the main page work).

Possible Fixes (possibly bad on performance)

Conclusion

Just use the NPM package version. and run your proxy and copy your dist files.

Related issues

65

14 (Not the issue itself since its fixed but the last comment)

DEMONSTRATION

https://private-user-images.githubusercontent.com/104333985/288658282-359e43e7-9bb5-4e40-bb80-747303d175e3.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDY4Mzk5MDMsIm5iZiI6MTcwNjgzOTYwMywicGF0aCI6Ii8xMDQzMzM5ODUvMjg4NjU4MjgyLTM1OWU0M2U3LTliYjUtNGU0MC1iYjgwLTc0NzMwM2QxNzVlMy5tcDQ_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIwMlQwMjA2NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZTgyNzk5OTk0ZTAxOGRkOGFlMGNhNjdkM2Q0N2VmMmQxZTFjZWQyMDYxY2Y0NWZiMmE0MjNiMDU2MmRmNjdhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.nXDaXndEyHYDByjCGiw8AATImKPu4zp97J5SYUql-8k

not-amplify commented 5 months ago

i have this same issue, dynamic doesnt seem to work with the iframe

not-amplify commented 5 months ago

for example when i try to search something up on google it just creates a new line when i press enter

rxfe-a commented 5 months ago

it seems its kinda fixed with the node js package? however its a 50% chance

not-amplify commented 5 months ago

i got the google page loaded but their builtin search bar doesnt work

rxfe-a commented 5 months ago

yeah it just fails at rewriting the page

i got the google page loaded but their builtin search bar doesnt work