# Does Auth0 rewrite the redirect\_uri from http to https?

**URL:** <https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443>\
**Category:** Get Help\
**Created:** [October 31, 2018, 2:46pm UTC](https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443 "2018-10-31T14:46:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [October 31, 2018, 2:46pm UTC](https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443/1 "2018-10-31T14:46:55Z")

</div>

I have a report from one of our devs that he is seeing a redirect\_uri being re-written from http to https. He’s doing development in his local environment and using `http://127.0.0.1:8081/callback` but it appears the callback is being rewritten to https. When he goes to the first URL below, the URL is rewritten / he is redirected to the second URL:

https://[MYTENNANT].auth0.com/authorize?audience=https%3A%2F%2F[MYTENNANT].auth0.com%2Fuserinfo&client\_id=[CLIENT\_ID]& **redirect\_uri=http%3A%2F%2F127.0.0.1%3A8081%2Fcallback** %2F&state=[STATE]&prompt=login&scope=openid+profile+email+offline\_access&response\_type=code&language=en

https://[MYTENNANT].auth0.com/authorize?audience=https%3A%2F%2F[MYTENNANT].auth0.com%2Fuserinfo&client\_id=[CLIENT\_ID]& **redirect\_uri=https%3A%2F%2F127.0.0.1%3A8081%2Fcallback** %2F&state=[STATE]&prompt=login&scope=openid+profile+email+offline\_access&response\_type=code&language=en

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [November 1, 2018, 9:46pm UTC](https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443/2 "2018-11-01T21:46:45Z")

</div>

Hi @markd  
Auth0 makes no attempt to rewrite the redirect URL, and the http scheme is supported (mostly for development purposes, don’t use it in production!).

If you want to provide a real URL to test or a [.HAR file](https://auth0.com/docs/har), happy to take a look. No need to obscure the tenant or client id, as this is public information, but if you prefer you can send it over DM.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [November 2, 2018, 3:07am UTC](https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443/3 "2018-11-02T03:07:25Z")

</div>

Thanks Nicolas. I’ll get the dev to replicate and produce a HAR.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [November 2, 2018, 3:28pm UTC](https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443/4 "2018-11-02T15:28:09Z")

</div>

Turns out this was a PEBKAC error. Issue resolved.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 27, 2019, 1:53pm UTC](https://community.auth0.com/t/does-auth0-rewrite-the-redirect-uri-from-http-to-https/17443/5 "2019-08-27T13:53:44Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
