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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:13:48+00:00 2026-05-26T23:13:48+00:00

I want to allow client applications to make cross domain JSON requests to a

  • 0

I want to allow client applications to make cross domain JSON requests to a central data server. The clients and server will be on different domains.

To get around the “Origin null is not allowed by Access-Control-Allow-Origin.” error, I have the server set a:

Access-Control-Allow-Origin: *

header.

I see here (http://www.w3.org/wiki/CORS_Enabled) that cross domain should only be used for “public data which doesn’t require cookie or session based authentication”.

Is is not safe to use session/cookie based authentication when using the Access-Control-Allow-Origin: * header? If not why?

Thank you.

  • 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-26T23:13:49+00:00Added an answer on May 26, 2026 at 11:13 pm

    Having a CORS ruleset of Access-Control-Allow-Origin: * isn’t a full Same-origin policy bypass, and is probably safe.

    Having this header set on every page allows for unauthenticated resource-requests. Authentication cookies are not implicitly included with these requests, so a cross-site XHR couldn’t be used to lets say; read your email, or read CSRF tokens on a remote domain – because these requests would require a cookie or a bearer token.

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

Sidebar

Related Questions

I wish to develop a client-server application in .NET that functions as follows: Clients
I want allow the user to customize their web pages on my ASP.NET MVC
I want to allow users to upload avatar-type images in a variety of formats
I want to allow an Excel report to be viewed embedded in a WebPage...
I want to allow users to paste <embed> and <object> HTML fragments (video players)
We want to allow normal href links to other webpages, but we don't want
I want to allow users to upload files with transaction information to my application.
I want to allow uploads of very large files into our PHP application (hundred
I want to allow the user to click a start point and then click
I want to allow users of my application to add sub-users and set privileges

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.