Comments (7)
Query params would not work because we have different apps on different hosts and we want to change dynamically between pages
from postmate.
@juanpmarin What's the use case that you're thinking about?
—Thanks
from postmate.
@yowainwright How is going ?
I want to dynamically change the frame URL beign able to don't loose the communication
from postmate.
@juanpmarin hey! Thanks for your response. Your insights are appreciated.
Here's my initial response:
Dynamically changing the child (<iframe>
's src
) is not supported by Postmate. Postmate uses postmessage and soon messageChannels. Both APIs expect a secure handshake between a parent (a webpage) and a child (an <iframe>
).
What are your thoughts? Would query params work? Have you tried?
from postmate.
@juanpmarin thanks for that insight.
A good use-case of Postmate is securely sharing information between a webpage and an iframe—like a form with personal information.
To me, this means that allowing information to be shared between a parent webpage and an iframe. Different/changing sources is a not a best practice for that. That issue can be bypassed and security can be maintained is by setting up a secure host for iframe src's and then whitelisting that host to allow for cross origin sharing. ...That's my abstract consideration.
from postmate.
@yowainwright sorry, I don't got what you suggestion means, you say that we should have an unique host that routes to the others apps ?
from postmate.
Sorry, I was describing my companies own use case.
To accomplish that your initial goal (as I understand it), the ur could be changed with JS or a new Postmate instance can be created.
from postmate.
Related Issues (20)
- maxHandshakeRequests is not configurable
- Question: When will v1.6.0 be released on NPM?
- Handshake Reply Failed HOT 2
- How to subscribe the load event of iframe? HOT 1
- if (process.env.NODE_ENV !== 'production') { HOT 6
- Problem with empty classListArray argument in IE 11
- I have forked this library, let's discuss if we should join efforts or not HOT 8
- How to perform communication when parent is included in his own child as iframe ?
- Emit date timestamp object not working
- Is this a bad practice? HOT 2
- how to use an existed iframe instead to create a new one
- Connection is not established when url redirecting
- Call return value
- parent can off an event listener
- Option to Allow FullScreen in an iframe
- Missing reject after maxAttempts HOT 1
- Missing handshake configuration HOT 2
- I don't want to add the <iframe> tag HOT 1
- [Feature Request] Ability to Configure maxHandshakeRequests as an option to Postmate constructor
- When reload the iframe 'handshake' and 'call' message conflict
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postmate.