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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:40:39+00:00 2026-05-16T10:40:39+00:00

I know if on my own webpage, if my user is on : http://www.example.com/form.php

  • 0

I know if on my own webpage, if my user is on :
http://www.example.com/form.php

and I make an ajax request from that page to :
http://example.com/responder.php

It will fail because of the Same origin policy (subdomain is different).

What I am trying to understand is, how is it that AJAX requests can pull data from API’s like flickr when the request and server are obviously different.


Edit :

eg: Why does this code work?

$.getJSON('http://api.flickr.com/services/rest/?&;method=flickr...'

(Referred this Community Wiki)
Is it using Cross Origin Resource Sharing?

Thanks!

  • 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-16T10:40:39+00:00Added an answer on May 16, 2026 at 10:40 am

    There are few known methods to work around the Same Origin Policy. One popular technique is to use “Script Tag Injection” such as in JSONP. Since the <script> tag is not constrained by the Same Origin Policy, a script on a third-party domain can provide executable code that interacts with a provided callback function. You may want to check out the “Tips and Tricks” section in the following article for further reading on the topic:

    • Howto Dynamically Insert Javascript And CSS (hunlock.com)

    You may also be interested in checking out the following Stack Overflow post for further reading on other techniques to work around the Same Origin Policy:

    • Ways to circumvent the same-origin policy

    UPDATE: Further the updated question:

    Quoting from the jQuery documentation on $.getJSON():

    If the URL includes the string “callback=?” in the URL, the request is treated as JSONP instead.

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

Sidebar

Related Questions

I know that systems are using their own time zone databases at different levels.
I know that jQuery.extend can be used to add by own custom methods to
Im trying to grab a HTML source code from a webpage which needs user
I know you should never make your own cryptography, whether it is a cipher
Can PL/SQL procedure in Oracle know it's own name? Let me explain: CREATE OR
I know RIM has their own IDE ( BlackBerry JDE ) for building BlackBerry
I've incorporated Apple's Reachability sample into my own project so I know whether or
Know of an OCAML/CAML IDE? Especially one that runs on Linux?
I'm creating a dictionary database using php and MySQL. The user can search for
I have to make a decision for our ( eXma german) community webpage. We

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.