GV Guy Posted October 11, 2022 Share Posted October 11, 2022 I'm working on a graphics editing app where some of the media exists in an external store that requires Bearer Authentication. I am able to access a file from Postman using a URL like: https://{MyExternalStore}/files/{filename}.png And Adding the Header: Authorization Bearer {my bearer token} Is there anyway I can load this in PIXI? I can get around CORS issues, but will always get 401 if loading without a token Quote Link to comment Share on other sites More sharing options...
Exca Posted November 9, 2022 Share Posted November 9, 2022 You could extends the pixi loader with custom solution or maybe there's some middleware way to add headers, though couldnt find one with quick glance of loader implementation. Quote Link to comment Share on other sites More sharing options...
GV Guy Posted January 26, 2023 Author Share Posted January 26, 2023 The solution I took was to download my images outside PIXI and store in Blob storage, then convert to Base64 and pass the base64 url to PIXI Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.