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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:32:52+00:00 2026-05-28T14:32:52+00:00

I have difficulties in seeing the point of the Access-Control-Allow-Origin http header. I thought

  • 0

I have difficulties in seeing the point of the Access-Control-Allow-Origin http header.

I thought that if a client (browser) gets a “no” from a server once, than it will not send any further requests. But chrome and firefox keep sending requests.

Could anyone tell me a real life example where a header like this makes sense?

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-28T14:32:53+00:00Added an answer on May 28, 2026 at 2:32 pm

    The Access-Control-Allow-Origin header should contain a list of origins which are “allowed” to access the resource.

    Thus, determining which domains can make requests to your server for resources.

    For example, sending back a header of Access-Control-Allow-Origin: * would allow all sites to access the requested resource.

    On the other hand, sending back Access-Control-Allow-Origin: http://foo.example.com will allow access only to http://foo.example.com.

    There’s some more information on this over at the Mozilla Developer Site

    For example

    Let’s suppose we have a URL on our own domain that returns a JSON collection of Music Albums by Artist. It might look like this:

    http://ourdomain.com/GetAlbumsByArtist/MichaelJackson.json
    

    We might use some AJAX on our website to get this JSON data and then display it on our website.

    But what if someone from another site wishes to use our JSON object for themselves? Perhaps we have another website http://subdomain.ourdomain.com which we own and would like to use our feed from ourdomain.com.

    Traditionally we can’t make cross-domain requests for this data.

    By specifying other domains that are allowed access to our resource, we now open the doors to cross-domain requests.

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

Sidebar

Related Questions

I have a data set of item difficulties that correspond to items on a
I'm having difficulties seeing why one way works and way doesn't. I have; switch
I have some difficulties finding the correct way to specify that a progress bar
Hi i have difficulties trying to translate this .sh file to a .bat file.
I sometimes have difficulties with other people who wish to solve a problem when
I am reading the book: Intel Threading Building Blocks. I often have difficulties understanding
I have some difficulties in my project. I got the RGB values from a
I have some difficulties for using Ruby block, passing in a method. As in
I'm having some difficulties with Ajax.BeginForm I have something like this in a view
I am having difficulties referencing all 3. I have already written my XML,XSD and

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.