pandavigoureux29

Phaser - Loader - Contribution to add special Headers

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.