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

Redirection to HTTP #340

Closed
yackermann opened this issue Jun 9, 2016 · 4 comments
Closed

Redirection to HTTP #340

yackermann opened this issue Jun 9, 2016 · 4 comments

Comments

@yackermann
Copy link

In the example, script location is at https://gnab.github.io/remark/downloads/remark-latest.min.js, but because it is at custom domain, it http://remarkjs.com/downloads/remark-latest.min.js

Possible solutions:

@yackermann
Copy link
Author

Ok. Fuck me. https://raw.githubusercontent.com/gnab/remark/gh-pages/downloads/remark-latest.min.js that does not work, because of git's incorrect mime for script.
How about rawgit?
https://rawgit.com/gnab/remark/gh-pages/downloads/remark-latest.min.js

danmichaelo added a commit to scriptotek/2016-03-17-BS that referenced this issue Jun 12, 2016
@gnab
Copy link
Owner

gnab commented Aug 25, 2016

I added forced HTTPS for remarkjs.com now, so this should no longer be a problem.

@teppeis
Copy link

teppeis commented Sep 26, 2016

@gnab Not fixed.

$ curl 'https://gnab.github.io/remark/downloads/remark-latest.min.js' -v
*   Trying 151.101.100.133...
* Connected to gnab.github.io (151.101.100.133) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: www.github.com
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /remark/downloads/remark-latest.min.js HTTP/1.1
> Host: gnab.github.io
> User-Agent: curl/7.43.0
> Accept: */*
> 
< HTTP/1.1 301 Moved Permanently
< Server: GitHub.com
< Content-Type: text/html
< Location: http://remarkjs.com/downloads/remark-latest.min.js
< X-GitHub-Request-Id: 67F5E01B:26A05:8E0715C:57E88565
< Content-Length: 178
< Accept-Ranges: bytes
< Date: Mon, 26 Sep 2016 02:21:33 GMT
< Via: 1.1 varnish
< Age: 200
< Connection: keep-alive
< X-Served-By: cache-itm7421-ITM
< X-Cache: HIT
< X-Cache-Hits: 1
< Vary: Accept-Encoding
< X-Fastly-Request-ID: 7abd892831cfc5f283b738bef2c53bac72b9407e
< 
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host gnab.github.io left intact

So the mixed-content is blocked by Chrome and other browsers.
Can I use https://remarkjs.com/downloads/remark-latest.min.js directly?
Can you fix HTML examples in this repo and README?

@yackermann
Copy link
Author

@gnab Somehow 301 redirects to HTTP and not HTTPS( Location: http://remarkjs.com/downloads/remark-latest.min.js)

@teppeis just use https://remarkjs.com/downloads/remark-latest.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants