originally posted in:BungieNetPlatform
View Entire Topic
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.
English
-
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.