flask-swagger-ui icon indicating copy to clipboard operation
flask-swagger-ui copied to clipboard

Blank page when deploying to AWS Lambda

Open amit1411 opened this issue 4 years ago • 1 comments

Hi, I am using zappa to deploy to AWS lambda using API gateway. My swagger URL is as below and endpoint is something like: https://.execute-api.eu-north-1.amazonaws.com/dev/swagger/ SWAGGER_URL = '/swagger' When i access this i get a blank page because the swagger resources are being fetched from different URL therefore API gateway gives 403. In below URL /dev is missing. https://.execute-api.eu-north-1.amazonaws.com/swagger/swagger-ui-bundle.js

amit1411 avatar Feb 01 '21 11:02 amit1411

I'm running into this issue now, were you able to figure out how to get around it? I've tried setting up api gateway to proxy the requests for the /swagger/* requests, but I don't think that works since the flask application doesn't have a route for those endpoints?

brentonmallen1 avatar Sep 21 '23 02:09 brentonmallen1