Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify Rewrites and Redirect #2839

Closed
coetzeetx opened this issue Jun 30, 2022 · 3 comments
Closed

Amplify Rewrites and Redirect #2839

coetzeetx opened this issue Jun 30, 2022 · 3 comments
Labels
bug Something isn't working redirects

Comments

@coetzeetx
Copy link

coetzeetx commented Jun 30, 2022

I am trying to setup a proxy for my Amplify web app so that '/demo' is redirecting to another domain which would be my server in this case.

to do this I use the following rule:

image

The Result is a 403 on my frontend.

I have also tried a redirect:

image

which results in a CORS missing in header issue.

but upon inspecting the server's headings cors is allowed on all domains:

image

what am i doing wrong?

@ghost ghost self-assigned this Jul 8, 2022
@ghost
Copy link

ghost commented Jul 8, 2022

Hi @coetzeetx 👋🏽 thanks for raising this issue. You have to use 200 rewrite to proxy the request to another domain which appears you have done correctly initially. Can you please provide your app ID so we can further investigate? An HAR capture after making the request can also help us identify why the request is not working.

@ghost ghost added bug Something isn't working redirects labels Jul 8, 2022
@ghost ghost removed their assignment Jul 7, 2023
@Jay2113
Copy link
Contributor

Jay2113 commented Oct 16, 2024

Closing the thread due to age. Refer to our docs on how to setup reverse proxy rewrites.

@Jay2113 Jay2113 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working redirects
Projects
None yet
Development

No branches or pull requests

2 participants