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 6579793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:56:33+00:00 2026-05-25T15:56:33+00:00

I am trying to build an interface that communicates with a REST API for

  • 0

I am trying to build an interface that communicates with a REST API for attask.com. Their API is convenient because it returns JSON. I thought that was perfect because I could forget about server-side C# code and just write the interface using jQuery and AJAX. However, when I try to make an AJAX request to their API I get an error in Chrome’s javascript console:

Origin http://mysite.com is not allowed by Access-Control-Allow-Origin.

What does this mean? Is this the browser preventing the request? If so, why?

Update:

If I don’t have any control over the server and it does not respond to JSONP requests, is my only option to employ a server-side REST client and have my AJAX talk to my own domain instead of attempting to go cross-domain?

  • 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-25T15:56:33+00:00Added an answer on May 25, 2026 at 3:56 pm

    I found that jQuery-JSONP is the easiest way to do this.
    jQuery JSONP is an alternative solution to jQuery’s implementation of JSONP

    jQuery-JSONP features:

    1. error recovery in case of network failure or ill-formed JSON responses,
    2. precise control over callback naming and how it is transmitted in
      the URL,
    3. multiple requests with the same callback name running concurrently,
    4. two caching mechanisms (browser-based and page based),
    5. the possibility to manually abort the request just like any other AJAX request,
    6. a timeout mechanism.

    Sample Code to Get user profiles from YouTube

    function getProfile(userId) {
    
        $.jsonp({
          "url": "http://gdata.youtube.com/feeds/api/users/"+userId+"?callback=?",
          "data": {
              "alt": "json-in-script"
          },
          "success": function(userProfile) {
              // handle user profile here 
          },
          "error": function(d,msg) {
              alert("Could not find user "+userId);
          }
        });
    }
    

    For more samples.

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

Sidebar

Related Questions

I am trying to build a web interface for an embedded device, that will
Im currently trying to build a Fluent Interface for a ServiceLocator. To ensure that
I'm trying to build a generic web service interface using WCF, to allow 3rd
I'm trying build a method which returns the shortest path from one node to
I am trying to build a dynamic proxy for an interface with LinFu. The
I am trying to build a webservice that manipulates http requests POST and GET.
I am trying to build an fairly simple iPad app that requires me to
I am trying to build a core application that uses plugins so that the
I'm trying to build a C# service in .NET 3.5 that supports both SOAP
I'm trying to build an interface between iTunes and MediaMonkeys. When I imported my

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.