Greetings!
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution.
Please click "Accept" the answer as original posters help the community find answers faster by identifying the correct answer.
Issue: Azure Front Door having problem with forwarding Authentication Bearer token
Resolution: I found out the reason why it was failing. It wasn't the Auth bearer token not being forwarded, but the URL rewrite was missing in my ruleset.
- Actually, the flow is
- newsite.com/a/b/old/images/image1.png -> Azure FD TO oldsite.com/images/image1.png -> AWS CF.
- AWS CF is configured only for the request path /images/*, so when FD was forwarding with /a/b/old/images/image1.png, AWS CF was responding with 502 because of no request mapping configured for that path.
- So, in Azure FD ruleset, before route override to AWS CF, I did a URL rewrite as below
- Source: /a/b/old/ Destination: / Preserve unmatched path: Yes
I hope this has been helpful!
Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.