client-js
client-js copied to clipboard
fix: insecure iframe messaging
Fixes #296
Pls check my changes. We should derive origin from uri instead of relying on user input.
Pls check my changes. We should derive origin from uri instead of relying on user input.
The suggestion for a parameter is so users can define what urls they want to accept request from. Locking people into request coming from the same url origin, makes the api not flexible enough.
We can't universally make that assumption about the context in which client-js is operating in.
I've made the necessary changes
@chaitanyapotti Thank you for the PR and issue! nice work!
Are you able to finish this one off? Happy to help get it through.
@zcstarr perhaps you have some time to cherrypick his commits and make the required changes?