0

So, I have the domain api.suapraia.org that is config as a custom domain of my heroku app.

But when I send a request on my new domain to a resource that is exposed on the api(api.suapraia.org /some_resource) heroku redirects to suapraia-api.herokuapp.com //some_resource

Is there something that I need to do on domain config?

gbrennon
  • 899
  • 2
  • 11
  • 30
  • Heroku itself won't perform a redirect. What framework is your application using? – mipadi Apr 02 '15 at 00:14
  • I'm using Flask! Here is what is hapenning when sending a POST request do the new domain: 1-POST on **new_domain/some_resource**. 2-POST gets redirected to **default_domain//some_resource** and becomes a GET – gbrennon Apr 02 '15 at 00:38
  • You can't redirect a POST, so that may be an issue. – mipadi Apr 02 '15 at 16:30
  • So I can't use my app at my new domain, as heroku redirects? Or can I use my subdomain api.suapraia as a domain for my app without any redirect? – gbrennon Apr 02 '15 at 17:24
  • How are you redirecting users? – mipadi Apr 02 '15 at 17:28

1 Answers1

0

I've deleted all my godaddy's config and started out from 0 following this post on Heroku's blog: https://blog.heroku.com/archives/2009/10/7/heroku_casts_setting_up_custom_domains

It is all working now

gbrennon
  • 899
  • 2
  • 11
  • 30