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

  • Home
  • SEARCH
  • 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 7759609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:40:26+00:00 2026-06-01T13:40:26+00:00

I think there is something I don’t understand about same origin limitation for XMLHttpRequest

  • 0

I think there is something I don’t understand about same origin limitation for XMLHttpRequest.

Instead of forbidding Javascript code to send http request to different hosts (something that is really annoying for legitimate uses) wouldn’t have been better to just allow the request but not sending or accepting cookies in that case?

Forbidding a specific script to get something that literally everyone else in the internet can get seems to me at a first sight a quite weird choice…

What am I missing?

  • 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-06-01T13:40:27+00:00Added an answer on June 1, 2026 at 1:40 pm

    Instead of forbidding Javascript code to send http request to different hosts (something that is really annoying for legitimate uses) wouldn’t have been better to just allow the request but not sending or accepting cookies in that case?

    That is what Cross-Origin Resource Sharing (CORS) specifies.

    Care must always be taken by applications when making cross-origin requests with user credentials, and servers processing such requests must take care in the use of credentials, including the Origin header.

    1. When requests have significance other than retrieval, and when relying on the Origin header as a credential, servers must be careful to distinguish between authorizing a request and authorizing access to the representation of that resource in the response.

    …

    omit credentials flag

    Set when user credentials are to be excluded in the request and when cookies are to be ignored in its response.


    Forbidding a specific script to get something that literally everyone else in the internet can get seems to me at a first sight a quite weird choice…

    What am I missing?

    It took web-standards bodies a while to realize that people would want to write serious JavaScript heavy applications. Gmail changed all that but standards bodies like the W3C take a while to fill functionality holes.

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

Sidebar

Related Questions

I'm starting to understand memory management better in objective-c, but there's something I don't
I think there must be something subtle going on here that I don't know
There's something I don't understand with tableviews: how to add a new item in
I'm having trouble using newly installed gems - I think there must be something
I'd think there'd be something to do this in Excel, because it seems so
Ok just to know,I copy-pasted the code from the android website,so I don't think
I don't think there is quite the need for the continued downvoting, I am
I don't think this question has asked yet (most similar questions are about extracting
If there were such a thing I would imagine the syntax to be something
I think there is a simple answer to this, but for some reason I

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.