Closed jneves closed 6 months ago
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.
Originally from: https://github.com/Miserlou/Zappa/issues/1902 by johanub
Context
I am using the redirect function in my flask app, but whenever the function triggers it redirects the autogenerated API Gateway domain instead of my own domain, which in turn gives me a message forbidden because it is and was internal url. It works when I run in localhost but as soon as it's AWS it doesn't work. I am using a cloudfront distro to redirect users from http to https.
Expected Behavior
It should redirect to the www.example.com and not AWS API Gateway autogenerated link
Actual Behavior
It redirects to AWS API Gateway autogenerated link and not www.example.com
Your Environment
zappa version: 0.48.2 python: 3.6 zappa_settings.json: { "dev": { "app_function": "application.application", "aws_region": "eu-north-1", "profile_name": "default", "project_name": "root", "runtime": "python3.6", "s3_bucket": "example bucket", "domain": "example.com", "use_precompiled_packages": true, "route53_enabled": true } }