minotar / imgd

Minotar is a global avatar service that pulls your head off of your Minecraft.net skin, and allows it for use on several thousand sites.
https://minotar.net/
The Unlicense
202 stars 61 forks source link

CORS headers on minotar.net #44

Closed max-mapper closed 11 years ago

max-mapper commented 11 years ago

Hi! this service is awesome!

I run the http://voxeljs.com/ project and think it would be awesome to support skins from minotar (e.g. http://maxogden.github.io/minecraft-skin/)

The only thing preventing this from happening is the presence of CORS headers on the minotar.net responses. Here's what currently happens:

screen shot 2013-07-14 at 3 45 57 pm

If you add CORS headers to the response it would work though, which would be awesome

clone1018 commented 11 years ago

nginx is setup to serve the header, but I don't see if via cloudflare, can you test it?

clone1018 commented 11 years ago

Ooops, didn't mean to close this one.

max-mapper commented 11 years ago

not getting headers yet, test page here:

http://maxogden.github.io/minecraft-skin

put a # and then the url to test, e.g. heres one with working CORS

http://maxogden.github.io/minecraft-skin/#https://commondatastorage.googleapis.com/voxeltextures/player.png

and heres one from minotar:

http://maxogden.github.io/minecraft-skin/#https://minotar.net/skin/forestwizard.png

max-mapper commented 11 years ago

(also feel free to embed this on the minotaur site if you want)

TNTUP commented 11 years ago

@maxogden How I can get this thing on my webserver? I found your github and tried, it doesn't work. Any help would be appriciated! Its uploaded on s.rightawake.com/tests/skin4

clone1018 commented 11 years ago

Hey there, sorry about that, my nginx configs were not linked together, you'll find that it'll work perfectly for you now :)

max-mapper commented 11 years ago

@TNTUP you have to browserify it first

max-mapper commented 11 years ago

@clone1018 awesome!

TNTUP commented 11 years ago

@maxogden Ok, but theres no steps how to install browserify, then it needs nodejs, and npm... My server runs on Apache Debian.

max-mapper commented 11 years ago

you run it on your computer and it builds the working JS

installation is here: http://browserify.org/#install

you basically just have to go to the node website and install, and then type the browserify installation command to install it

On Sun, Jul 14, 2013 at 9:40 PM, TNTUP notifications@github.com wrote:

@maxogden https://github.com/maxogden Ok, but theres no steps how to install browserify, then it needs nodejs, and npm... My server runs on Apache Debian.

— Reply to this email directly or view it on GitHubhttps://github.com/Axxim/Minotar/issues/44#issuecomment-20950581 .

TNTUP commented 11 years ago

@maxogden I dont know how to install it... Idk which file to put with /skin4/ and it does nothing. Could you PM me the steps?