Global outage event
If you're experiencing issues with your AWS services, then please refer to the AWS Health Dashboard. You can find the overall status of ongoing outages, the health of AWS services, and the latest updates from AWS engineers.
【以下的问题经过翻译处理】 当我们在API Gateway中部署WebSocket时,它会给我们一个类似于wss://<example>.amazonaws.com/production的URL。 根据我们的用例,我们需要在URL中传递一个参数,例如:wss://<example>.amazonaws.com/production/id。现在,当我们尝试连接到第一个URL时,它可以正常工作。但是,如果我们连接到第二个URL,就会收到一个403错误:
错误:意外的服务器响应:403 握手细节 请求URL:https://<example>.amazonaws.com/production/id 请求方法:GET 状态码:403禁止
在AWS API Gateway中似乎没有办法配置访问第二个URL。 有人能提供解决方案吗?
【以下的回答经过翻译处理】 这是符合预期的,当前不能在stage name后追加任何内容。如果这样做,会抛出异常
为了解决这个问题,你可以在API Gateway前部署一个CloudFront分发,然后使用CloudFront函数来修改URL,将ID删除并放在一个头文件或请求参数中。
您未登录。 登录 发布回答。
一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。