Error 401 Unauthorized
See original GitHub issueHi i have another problem:
When request POST in this URL :
https://peerserver.bulledevoyages.com:9000/myapp/peerjs/be1e695d-a8a4-45cf-9275-07e3159cfc80/0xgivwm45ck/id?i=0
I have an unauthorized 401 error.
This my config: -to launche peerserver:
./peerjs --port 9000 --key peerjs --sslkey /etc/letsencrypt/live/peerserver.xxx.com/privkey.pem --sslcert /etc/letsencrypt/live/peerserver.xxx.com/fullchain.pem --path /myapp
-to connect:
var peer = new Peer({ key: 'peerjs', host: 'peerserver.xxx.com', port: 9000, path: '/myapp', secure: true, debug: 3, config: { "iceServers": [ // Information about ICE servers - Use your own! { "urls": "stun:turn.mysite.com", "username": "xxx", "credential": "xxx" }, { "urls": "turn:turn.mysite.com", "username": "xxx", "credential": "xxx" }, ] } })
Thank you
EDIT:
Now i have this error :
Cannot GET /myapp/peerjs/088ccaf2-b1e1-4033-8ed6-cdfbff9eb687/x4vk0jdaxei/id
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
It work thank you 😃
Try to use 1.2.0
<script src="https://cdn.jsdelivr.net/npm/peerjs@1.2.0/dist/peerjs.min.js"></script>