angularjs - Adding CORS Headers to request that another library makes -


i have been having problems cors in app. using futurepress' epub.js library load , display epub files.

epub.js straightforward , works passing url epub resource want render. example:

var book = epub('http://www.feedbooks.com/book/88.epub'); 

the problem have receive error regarding cors says "xmlhttprequest cannot load [url]. no 'access-control-allow-origin' header present on requested resource. origin 'null' therefore not allowed access.

i not sure how can add proper cors headers request when being made within library itself. there way can intercept request , add then? when use chrome plugin "allow-control-allow-origin: *" works well. i'm not sure how plugin manages fix problem though.

this app client-side app built in angular. thanks.