JavaScript is required to use Bungie.net

OffTopic

Surf a Flood of random discussion.
originally posted in:BungieNetPlatform
9/9/2015 1:36:30 AM
4

What does this error mean?

What does this error mean? My code works with Google Chrome, but not any other browser, when tested locally. When I upload it to my webhost's server, go to the website and test it, this error occurs. I know it's really not related to the API, but I cannot figure out what is happening. I am using $.ajax in jQuery.
English
#Offtopic

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
  • Edited by VThornheart: 9/10/2015 11:39:44 PM
    Ah! You will want to read up on CORS: http://enable-cors.org/ To summarize, the problem is that most modern browsers will not allow you to make AJAX requests in Javascript to a different domain than the domain of the page that served the initial content. This is an important protection for users, who otherwise could be bombarded by malicious intent to serve up data from other domains while impersonating you, among other issues (look up cross-site scripting vulnerabilities for more information). CORS is a protocol to allow that restriction to be lifted for certain servers. Read more above and also google CORS, and check with your web host to see if or how you can enable the CORS settings you need. EDIT: Just realized that was probably confusing, edited to clarify a bit.

    Posting in language:

     

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

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