ovidiuch / github-issue-template

BDD Issue Template for Github (with Chrome Extension)
18 stars 23 forks source link

Serve the issue template outside of GitHub #9

Closed mihneadb closed 10 years ago

mihneadb commented 10 years ago

GitHub made some changes in the way they serve content from raw.github... and this makes Chrome forbid loading of the template data.

A possible way for solving this would be to serve the issue template from a server (so not from GitHub).

mihneadb commented 10 years ago

-- I didn't use the issue template because it was not working :P.

ovidiuch commented 10 years ago

Couldn't we just use CORS as a proxy and serve the file directly from rawgithub.com? (e.g. https://rawgit.com/skidding/github-issue-template/master/template.md)

mihneadb commented 10 years ago

Oh right, that's even better!

On Tue, Apr 29, 2014 at 5:11 PM, Ovidiu Cherecheș notifications@github.comwrote:

Couldn't we just use CORS as a proxy and serve the file directly from rawgithub.com? (e.g. https://rawgit.com/skidding/github-issue-template/master/template.md)

— Reply to this email directly or view it on GitHubhttps://github.com/skidding/github-issue-template/issues/9#issuecomment-41688656 .

Mihnea Dobrescu-Balaur

mihneadb commented 10 years ago

It looks like we only need to run https://pypi.python.org/pypi/corsa/0.1.2 on a server and change the github extension to get the md from SERVER/proxy/https://rawgit.com/skidding/github-issue-template/master/template.md.

mihneadb commented 10 years ago

Testing it locally now. Need

corsa --allow-proxy http://rawgit.com --allow-origin ALL
mihneadb commented 10 years ago

Ok, it's working. We get a warning that we are proxying through http and not https, but.. that's a different problem.