2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
以下文档表明,后端Lambda代码需要一个头来允许CORS。
兰姆达代码看起来像以下文件吗?
https://docs.aws.amazon.com/zh_cn/apigateway/latest/developerguide/how-to-cors.html#apigateway-cors-request-types
0
在返回值的地方需要加上下面的代码 response["headers"]["Access-Control-Allow-Origin"] = "*"
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a 5 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans