-
-
Notifications
You must be signed in to change notification settings - Fork 982
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
Multiple targetOrigin #707
Comments
This is passed to window.postMessage, so is restricted to what the browser
supports
https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
|
I think there's two aspects to consider regarding messages. Message reception:
Sending a message back: IMHO, targetOrigin should be renamed to trustedOrigins. The target would always be the parent that included the frame which is provided in event.origin
|
Was it decided that this was possible with this library? A simple use case would be wanting to allow 3 domains, for dev/staging/production domains, but no others. |
I'm pretty much looking for exactly this option. Any update to whether it is possible? |
I've been looking at this and the issue is that you end up flooding the console with erroneous error messages. As every rejected |
Is there a way to restricted multiple 'targetOrigin' on an iFramed page, instead of just default it to '*', or restricted to only one domain?
The text was updated successfully, but these errors were encountered: