Is There A Way To Mask Http Request Calls With A Custom Protocol?


Please can you help with this if possible, I am trying to make a mask an http url request with a custom protocol, so in essence, a call to a link say (atom://music/ will actually issue a call to
(http://localhost/music/ Note: .xyz will actually be a media resource, mp3 to be specific.

I can register the custom protocol and also revamp the link using the request parameter of the function but I cant send a new request.

I would appreciate any help as regards this. thank you.

Proxy http requests as file://someURL to localhost:8080:/someURL to avoid CORS issues