Can't see why I get "too many redirects" on an Azure Static Web App

Greg Low 1,980 Reputation points Microsoft Regional Director
2025-04-18T02:26:45.4266667+00:00

I have several Azure Static Web Apps that all work fine with custom domains.

However, there is one site where the config worked fine, yet when I try to access it, it says: Too many redirects". It's https://techcareerforlife.com

Yet, I've checked everything obvious with DNS settings at Cloudflare, etc. and it looks identical to sites that work fine. And the Azure Static Web Site accepted the DNS config and set the custom domain just fine.

I'd love to get a hint on how to fix it.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

Accepted answer
  1. Siva Nair 2,420 Reputation points Microsoft External Staff Moderator
    2025-04-18T03:15:29.0866667+00:00

    HI Greg Low,

    Reaching out in private chat.

    And here are immediate things you can try to mitigate the issue:

    -Clear the Cookies/Cache in your browser -Try accessing the website in a different browser. -Try Incognito Mode/In-Private Browsing.

    If that doesn't help, you could take a look at your CDN rules and configure them to stop the redirection loop -Go to the CDN Profile in the azure portal -Click on Rules Engine to configure the rules. -Changed the Condition from Always to Request Scheme for more details please see this blog post

    Another workaround-

    1. Set SSL/TLS Mode to "Full" in Cloudflare
    • Go to Cloudflare Dashboard
    • Open your site (techcareerforlife.com)
    • Navigate to SSL/TLS → Overview
    • Set SSL mode to Full (Strict) - mentioned below and found by Greg Low that this worked Thanks for sharing!

    Hope this helps you , if not, for any further assistant, do let me know.

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.


1 additional answer

Sort by: Most helpful
  1. Greg Low 1,980 Reputation points Microsoft Regional Director
    2025-04-18T05:23:08.49+00:00

    I found that a site that was working had encryption mode set to Full (strict). I changed this one (at Cloudflare) to that as well, and it now seems to work. Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.