Git Product home page Git Product logo

Comments (12)

SamVerschueren avatar SamVerschueren commented on August 28, 2024 1

Oh, this is very interesting! Thanks for opening the bug report 🙏 ! You are right, we will have to allow it. If you directly update the iframe with an allow="payment" attribute in the dev console, it seems to work fine. This shouldn't be hard to add :).

from webcontainer-core.

SamVerschueren avatar SamVerschueren commented on August 28, 2024 1

@socsieng alright, should be live 😀 !

from webcontainer-core.

EricSimons avatar EricSimons commented on August 28, 2024

Also @socsieng if you click the "open in new window" at the top of the page this should also fix the problem, as it's no longer running in an iframe :)

from webcontainer-core.

socsieng avatar socsieng commented on August 28, 2024

Also @socsieng if you click the "open in new window" at the top of the page this should also fix the problem, as it's no longer running in an iframe :)

Yes, I'm aware. However, I included the instruction in the demo because I don't think many developers will know that the button behaves differently in a new window/preview. If the button behaves correctly, then I can remove the prompt altogether.

from webcontainer-core.

SamVerschueren avatar SamVerschueren commented on August 28, 2024

I created an internal PR to fix this. Not sure when it will land though. Probably Monday, latest.

from webcontainer-core.

socsieng avatar socsieng commented on August 28, 2024

Thanks for the quick turnaround @SamVerschueren.

Do you know if this will also be applied to non webcontainer instances in StackBlitz?

See https://stackblitz.com/edit/google-pay-react for example.

from webcontainer-core.

SamVerschueren avatar SamVerschueren commented on August 28, 2024

It's a different part of the project so should be fixed separately. I'll see if I can take a look at it today or maybe tomorrow. Feel free to ping me back if you haven't heard anything from me at the end of the week.

from webcontainer-core.

SamVerschueren avatar SamVerschueren commented on August 28, 2024

@socsieng It should be live for non-webcontainer projects now as well 🙏 .

from webcontainer-core.

socsieng avatar socsieng commented on August 28, 2024

Thanks for the update @SamVerschueren.

I did some initial testing and found that it isn't working in Chrome 90.0.4430.212.

From what I can tell, the allow attribute is set to geolocation; microphone; camera; payment; which looks correct, however, when compared to the web-container version geolocation; microphone; camera; payment, the only difference is the trailing ;. When I remove the trailing semicolon from the allow attribute, and reload the iframe, it works as expected.

The ask is to remove the trailing semicolon.

I'm happy to file a separate issue. Is there a repo or a separate process to do this?

from webcontainer-core.

SamVerschueren avatar SamVerschueren commented on August 28, 2024

Mmm, this is super weird. I tested this before I deployed it to production but when trying it again now, it doesn't seem to work. I'll fix it 👍 .

from webcontainer-core.

SamVerschueren avatar SamVerschueren commented on August 28, 2024

@socsieng I tried fixing it, and although it seemed to work on our staging environment, it doesn't work on production. I have no clue what's going on (yet). Could you maybe create a new issue for it in https://github.com/stackblitz/core? That's where we track issues for non-WebContainer projects.

from webcontainer-core.

socsieng avatar socsieng commented on August 28, 2024

Will do. Thanks.

from webcontainer-core.

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.