JavaScript is required to use Bungie.net

Help

Help us help you.
originally posted in:BungieNetPlatform
8/13/2015 12:08:32 PM
3

CORS & API key: anyone found a fix?

Hey guys, I was reworking my AngularJS project that fetches my destiny info to contain my api key. however, adding this custom header seems to break my app. I've been forced to use a proxy service (was using http://crossorigin.me/ but tried heruko as well) so my app can run flawless, however, as soon as I include my api key header i'm running into the CORS issue again since neither services seem to forward my custom header (or when i include my custom header they seem to not include their own CORS headers). Anyone else stumble onto this issue? able to get past it? If not I guess I'll have to see if i can setup another fix for the issue. just wanted to keep with angularJS for learning purposes for myself :)
English
#Help

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • The only way is to make use of a proxy as you have been, or move your application to a context where it's less restricted. Setting up a simple local web server like nginx with PHP to route your JavaScript requests through will work well as a proxy (at least for playing with your code), and a browser plugin, extension, or add-on will have elevated permissions to make requests to wherever it's permitted to. Personally I'd go with the browser extension given what you've said, but it really depends on what you're aiming to do.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon