markdown - Fetching referrer URL from a Github-Issue embedded image -
we want place embedded image github issue eg.
https://github.com/org/repo/issues/101
![a cool badge](http://ourserver.io/badge/)
on /badge endpoint, our server wants render svg file specific issue special information attached (accepted/rejected/stale/etc), request object doesn't seem contain referrer url, in case https://github.com/org/repo/issues/101
(using node/express), can't distinguish 1 badge on server side without including additional information on query string.
is there way catch referring url before creating badge?
ps: aware of this limitation, though, since not interested in user-browser-specific data, url of issue badge needs rendered to, thought i'd ask.
pps: our current solution generate embed code per issue on our landing page, we'd eliminate step , have universal embed code that's valid on every issue.
all github images proxied https://github.com/atmos/camo security reasons (typically, avoid mixed-content warnings when users paste http urls in https-only github).
github purposefully makes sure image's location (eg. github issue's url) not leak image's origin server (eg. ourserver.io). see following discussion on subject: https://github.com/atmos/camo/issues/43.
the solution put information in image's url: http://ourserver.io/badge/github/org/repo/issues/101
.
Comments
Post a Comment