Comments (12)
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.
@socsieng alright, should be live 😀 !
from webcontainer-core.
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.
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.
I created an internal PR to fix this. Not sure when it will land though. Probably Monday, latest.
from webcontainer-core.
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.
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.
@socsieng It should be live for non-webcontainer projects now as well 🙏 .
from webcontainer-core.
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.
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.
@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.
Will do. Thanks.
from webcontainer-core.
Related Issues (20)
- Stackblitz works poorly on firefox HOT 1
- Web Container not starting on chrome 109 (32 bit) HOT 2
- doesn't work with Firefox Enhanced Tracking Protection HOT 3
- Codeflow server crashed HOT 3
- NativeScript not updating mobile device HOT 1
- Build Freezes on Postcss loader HOT 1
- Nuxt devtools fails to load. HOT 6
- StackBlitz server crashed HOT 2
- crashStackBlitz server crashed HOT 1
- Creating a Git Repo from a Vite project does not work
- Creating new file with same name will overwrite existing file
- Label for outline mat-form-fields is overlapping matPrefix icon in a mat-sidenav HOT 2
- Wildcard subpath exports are not being typed
- Angular Project not working HOT 1
- [major, blocking] push declined due to user privacy reasons
- Media Serving Issue: Inconsistent Media Delivery with NodeJS and ExpressJS Web Server on StackBlitz
- Cannot run `biome`: `< must be followed by a word` HOT 1
- Stackblitz Repositories - Automatically add commit message & autosync option
- preloadmetadata: timing idealTree:userReques HOT 1
- Editor is just loading, never completes HOT 2
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 webcontainer-core.