Bad Request (400) request on working custom domain server

Alan Ames 111 Reputation points
2021-07-19T07:57:11.87+00:00

We have a working app deployed to our app domain https://vingineers-demo.azurewebsites.net/

We have set up the custom domain and loaded all of the SSL certificates, pointed the dns to https://sni.demo.vingineers.com

However, we are only getting "Bad Request (400)" from this HTTPs://demo.vingineers.com

All of our Azure configurations / front ends / debugs now say that it is working properly but we can't figure out what is causing this to fail.

Any support would be greatly appreciated!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,782 questions
0 comments No comments
{count} vote

Accepted answer
  1. Alan Ames 111 Reputation points
    2021-07-22T10:24:58.247+00:00

    Eventually found the anser:

    Our Django server did not have the new domain in "ALLOWED_HOSTS" in settings.py.

    I found this by doing other searching until this came up.

    Normally we would have seen the warning for this, but the switch to a production mode caused us to miss the error!

    Thanks for everyone's input.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Manu Philip 18,561 Reputation points MVP
    2021-07-19T10:58:34.787+00:00

    Error 400 says that the request could not be understood by the server due to a syntax issue in the code used for the application. For code based on Node js environment value to address this issue can be set as NODE_OPTIONS with the value with the size you want set on your app. You may check in similar way for your code used


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.