Comments (7)
i dont have spesific reason to serve that in an insecure origin, what should i check ?
Sorry I don't understand your question. I was asking your use case?
-
If you're deploying the service to end users, you'll need an SSL certificate because it's very unsafe to
getUserMedia
in an insecure context. -
For local development and testing,
localhost
is required, or check the README to learn how to test your service on your mobile device without https. -
If you really want
chrome://flags/#unsafely-treat-insecure-origin-as-secure
to work. You can fork or patch thevue-qrcode-reader
to comment out this piece of detection code:vue-qrcode-reader/src/misc/camera.ts
Lines 32 to 40 in 504e46d
from vue-qrcode-reader.
iam using vuejs3, with core ui template
from vue-qrcode-reader.
You can only use the camera in a secure context (https or localhost): https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
from vue-qrcode-reader.
You can only use the camera in a secure context (https or localhost): https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
so how to allow it in http ?
I have tried entering the url into => chrome://flags/#unsafely-treat-insecure-origin-as-secure
but the camera still isn't showing
from vue-qrcode-reader.
The detection of insecure context is hardcoded here:
vue-qrcode-reader/src/misc/camera.ts
Lines 32 to 40 in 504e46d
So chrome://flags/#unsafely-treat-insecure-origin-as-secure
is not gonna work.
Do you have a reason to serve this in an insecure context?
from vue-qrcode-reader.
The detection of insecure context is hardcoded here:
vue-qrcode-reader/src/misc/camera.ts
Lines 32 to 40 in 504e46d
So
chrome://flags/#unsafely-treat-insecure-origin-as-secure
is not gonna work.Do you have a reason to serve this in an insecure context?
i dont have spesific reason to serve that in an insecure origin, what should i check ?
from vue-qrcode-reader.
This issue has been marked as stale. If there is no further activity it will be closed.
from vue-qrcode-reader.
Related Issues (20)
- The automated release is failing 🚨
- CDN download link returns file does not exist HOT 2
- Serious bug(严重的bug) HOT 1
- 版本3.1.9,方法onCameraOn无效,是否含有这个方法?
- 版本3.1.9是否支持formats?如果不支持我应该如何实现? HOT 13
- Scan small DataMatrix HOT 2
- Detect and tracking don't work anymore if choose a camera with constraints HOT 9
- corresponding type declarations HOT 2
- use paused introduce around 1s to 2s of freeze HOT 4
- Feature Request: PDF-Support for Dropzone HOT 4
- reading 'enumerateDevices' is undefined HOT 2
- Are formats available in vue 2? HOT 1
- Unable to read PDF417 Barcodes HOT 1
- Error on installation on Nuxt 3 HOT 1
- Incorrect file extension in "exports" (package.json) HOT 2
- Custom `wasm` file not loading correctly in Nuxt apps HOT 5
- Coponent types missing HOT 3
- TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- ERROR Failed to execute 'detect' on 'BarcodeDetector': Barcode detection service unavailable. DOMException@ er@ @ HOT 11
- Unable to switch the camera once selected with the problem camera HOT 7
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 vue-qrcode-reader.