[英]kinesis video streams webrtc 403 forbidden on presigned websocket wss url
I'm using SigV4RequestSigner
to presign a WebSocket url in aws lambda, using Amazon Kinesis Video Streams WebRTC SDK for JavaScript I'm using
SigV4RequestSigner
to presign a WebSocket url in aws lambda, using Amazon Kinesis Video Streams WebRTC SDK for JavaScript
In the client when attempting to call new SignalingClient()
with a requestSigner that returns the presigned url from the server I'm getting the following error:在客户端中,当尝试使用从服务器返回预签名 url 的 requestSigner 调用
new SignalingClient()
时,我收到以下错误:
Error during WebSocket handshake: Unexpected response code: 403
What could be the reason?可能是什么原因?
Could this be a CORS issue?这可能是 CORS 问题吗?
Maybe the url is missing a token or a header?也许 url 缺少令牌或 header?
Solved when adding the kinesisvideo:ConnectAsMaster
permission to the lambda function which signs the url.添加
kinesisvideo:ConnectAsMaster
权限到 lambda function 签名 url。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.