Dédé Posted October 30, 2015 Share Posted October 30, 2015 Hi,I am using babylonjs on an asp.net application.Some textures are delivered by an asp.net mvc controller, and should be accessible only by authenticated users.In the babylonjs source, I have seen that image loading has "crossOrigin = 'anonymous';".Then I have read this post : http://stackoverflow.com/questions/23123237/drawing-images-to-canvas-with-img-crossorigin-anonymous-doesnt-workCan you add the ability to allow the 'use-credential' behavior ?Thanks. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2015 Share Posted October 30, 2015 Hello Babylon.js is open source so feel free to fork it and change the behavior you want. Quote Link to comment Share on other sites More sharing options...
Dédé Posted October 30, 2015 Author Share Posted October 30, 2015 Thanks I will give a try... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2015 Share Posted October 30, 2015 Let me know if you can extract a general behavior Quote Link to comment Share on other sites More sharing options...
Dédé Posted October 31, 2015 Author Share Posted October 31, 2015 In my case, I no longer have the problem, since I use another way to load image files.But for a configurable behavior, you can look at my pull request. (sorry if I have missed something in the coding guidelines ). jerome 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 31, 2015 Share Posted October 31, 2015 Looks good! Just merged it :-)Thanks a lot for the PR. Don't forget to update the readme of the preview release. 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.