Serverless Framework with AWS cognito generates CORS error

前端 未结 3 1009
别那么骄傲
别那么骄傲 2020-12-12 04:42

I get this error message from the Angular frontend and I am not authorized to touch my lambda code:

`Access to fetch at \'https://testapicd.***.***.com/local         


        
3条回答
  •  不知归路
    2020-12-12 05:20

    This line in serverless.yml

    arn: ${file(config.${self:provider.stage}.json):userpoolarn}

    Should have been

    arn: ${file(config.${opt:stage}.json):userpoolarn}

提交回复
热议问题