Made resources work cross-origin