Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PXD-819 ⁃ redirect response with incorrect domain in the message #136

Open
philloooo opened this issue Jun 17, 2018 · 0 comments
Open
Labels

Comments

@philloooo
Copy link
Contributor

philloooo commented Jun 17, 2018

flask handles redirect from /index -> /index/, when deployed in production behind reverse proxy, the Location header has the correct url under external domain, but the response message uses the internal domain

curl https://data.kidsfirstdrc.org/index/index -v
*   Trying 52.44.40.52...
* TCP_NODELAY set
* Connected to data.kidsfirstdrc.org (52.44.40.52) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.kidsfirstdrc.org
* Server certificate: Amazon
* Server certificate: Amazon Root CA 1
* Server certificate: Starfield Services Root Certificate Authority - G2
> GET /index/index HTTP/1.1
> Host: data.kidsfirstdrc.org
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 301 MOVED PERMANENTLY
< Access-Control-Allow-Origin: *
< Content-Type: text/html; charset=utf-8
< Date: Sun, 17 Jun 2018 18:41:01 GMT
< Location: http://data.kidsfirstdrc.org/index/index/
< Server: nginx
< Set-Cookie: csrftoken=d93b12807e844387feda2700bb17eec12000.0032018-06-17T18:41:01+00:00;Path=/
< Content-Length: 263
< Connection: keep-alive
< 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
* Connection #0 to host data.kidsfirstdrc.org left intact
<p>You should be redirected automatically to target URL: <a href="http://indexd-service/index/">http://indexd-service/index/</a>.  If not click the link.```
@philloooo philloooo added the bug label Jun 17, 2018
@philloooo philloooo changed the title redirect response with incorrect domain in the message PXD-819 ⁃ redirect response with incorrect domain in the message Jun 18, 2018
@philloooo philloooo added the bug label Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant