Coder Social home page Coder Social logo

Comments (7)

juanpmarin avatar juanpmarin commented on July 24, 2024 1

Query params would not work because we have different apps on different hosts and we want to change dynamically between pages

from postmate.

yowainwright avatar yowainwright commented on July 24, 2024

@juanpmarin What's the use case that you're thinking about?

—Thanks

from postmate.

juanpmarin avatar juanpmarin commented on July 24, 2024

@yowainwright How is going ?
I want to dynamically change the frame URL beign able to don't loose the communication

from postmate.

yowainwright avatar yowainwright commented on July 24, 2024

@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.

yowainwright avatar yowainwright commented on July 24, 2024

@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.

juanpmarin avatar juanpmarin commented on July 24, 2024

@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.

yowainwright avatar yowainwright commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.