JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by Fraser: 12/29/2015 12:02:58 PM
1

CORS issue

Hello. I've read that you can use the Bungie-Platform herokuapp to act as a proxy, allowing you to make CORS request. However, every time I try to make any requests I receive the following message: [quote]XMLHttpRequest cannot load http://bungie-platform.herokuapp.com/proxy/User/SearchUsers/?q=FraserBaws. Request header field X-API-Key is not allowed by Access-Control-Allow-Headers in preflight response.[/quote] I'm using the following jQuery AJAX call: [quote] $.ajax({ type: 'GET', beforeSend: function (request) { request.setRequestHeader("X-API-Key", apiKey); }, url: 'http://bungie-platform.herokuapp.com/proxy/User/SearchUsers/?q=FraserBaws', success: function( data ) { response(data.Response); } });[/quote] Any idea why I may be getting this message? Any help is greatly appreciated.

Posting in language:

 

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

  • Ah, unfortunately that heroku app isn't an official Bungie service - if the developer who created and maintains it doesn't happen to wander by here, you may need to seek them out if you're using that service.

    Posting in language:

     

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

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