Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7630575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:08:20+00:00 2026-05-31T06:08:20+00:00

In chrome I’m encountering the above error that blocks the browser from pulling calendar

  • 0

In chrome I’m encountering the above error that blocks the browser from pulling calendar data from Google. I have tested the url independently and it works.

From what I’ve been able to research, the cross-site request done with $.ajax against an XML source triggers the Access-Control-Allow-Origina error.

Per jQuery, http://api.jquery.com/jQuery.ajax the crossDomain=true should make it work with some browsers, but it doesn’t in chrome.

Per other answers on stack, $.getJSON should sidestep the issue and we can get the feed as a json http://googleappsdeveloper.blogspot.com/2010/09/new-json-format-for-google-calendar-api.html with the ?alt=jsonc arg.

Before I get into the code more deeply, how can I get this to work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:08:21+00:00Added an answer on May 31, 2026 at 6:08 am

    You’ve answered your own question. getJSON should be able to leverage JSONP which is a cross domain request embedded in a script block think

    <script src="http://someforeigndomain.com/doc.json"></script>
    

    What the server really returns is

    callback({some: "relevant", json: "object"});
    

    This is then acted upon by your code that

    function callback(obj) {
       //do something with json.
    }
    

    Jquery in this case does all the heavy lifiting of tieing the callback into the one you specify in your getJSON config object. But i hope this helps you understand whats going on with getJSON when accessing data outside of your domain. It isn’t REALLY ajax.


    More specifically the reason your experiencing the error with ajax is that browser implement a protection similar to flash that disallow cross domain scripting as a security mechanism. Just like with crossdomain.xml this can be worked around if you own the destination server by implementing CORS, this means listening for requests with the OPTION method and sending back headers that allow the originating domain. This mainly helps domain combat XSS that would otherwise cause DDOS or SPAM, while still allowing trusted external sites to communicate with it’s web services. Hope that helps.


    For info on the jQuery part of your question just read $.getJSON from the Jquery Docs its pretty straight forward.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Google chrome doesn't behave the same as other browsers when encountering this nugget: <?php
Google chrome has a very nice speech recognition control in it's browser. For example
Chrome browser has this weird functionality that when I drag a div, or image,
Google Chrome is set as the default browser. However, it opens links in Firefox,
Google Chrome and IE8 implement multi-process support for each tab. How would I implement
Is Chrome beeping during a removeAllRanges(); to indicate an error in the code, or
How does Google Chrome command and control multiple cross platform processes and provide a
While browsing with Chrome, I noticed that it responds extremely fast (in comparison with
When using Google Chrome, I want to debug some JavaScript code. How can I
After test driving Google Chrome for 30 minutes or so, I like it, even

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.