Jump to content

Phaser - Loader - Contribution to add special Headers


pandavigoureux29
 Share

Recommended Posts

Hello!

 

I want to load my assets directly from GitHub but to do that, I have to specify the HTTP Header "Accept: application/vnd.github.v3.raw".

 

I am able to load my GitHub assets with a XmlHTTPRequest and give the result to an Image (not Phaser.Image) instance, for example, but the Phaser's Loader can't because I can't set any Header.

 

I've digged through the Loader's code and I'm able to submit a contribution to Phaser but my question is:

"Is Phaser interested by this functionnality?"

 

I can create my own external loader but I think it will be better integrated if it is in the Phaser's loading flow.

 

Thank you!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...