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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:54:49+00:00 2026-05-31T07:54:49+00:00

Since jQuery ajax ist not working for CORS/IE, I’m using XDomainRequest to retreive data

  • 0

Since jQuery ajax ist not working for CORS/IE, I’m using XDomainRequest to retreive data from another Server. Work’s fine, but I would like to send some header (‘Authentification’, ‘content-type’).

Is there a chance to add/change header in XDomainRequest?

Or does someone know a workaround?

  • 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-31T07:54:51+00:00Added an answer on May 31, 2026 at 7:54 am

    This is what we did for IE.

    If you have control over the target domain, host a (static) html file there. Include the html using the iframe.

    Now this iframe does actually have access to the local domain, so you can communicate between the parent and child frame to get what you need.

    This worked much better than XDomainRequest for us.

    window.postMessage is the best way to setup the communication:

    But I’m pretty sure that only started working since IE8. If you require older browsers as well, you must use a different hack.

    In our case, this was our 3-layer system:

    1. CORS, for browsers that support it
    2. An iframe & window.postMessage as a primary fallback
    3. A server-side proxy script as the secondary fallback

    All of these options work well, are reliable and didn’t feel too much like a hack. The secondary fallback was barely ever used.

    Keep in mind that the ‘Authentication’ header specifically is special, and I would not be shocked that that’s blocked under certain circumstances anyway. We added a custom header ‘X-Authenticate’ as it did pass through all the time.

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

Sidebar

Related Questions

I was trying to grab some data from the database using JQuery AJAx, and
I am using jsonp and ajax to access a web service on another server.
I am developing an ASP.net site (using .NET 4, EF, jQuery Ajax, SQL Server
I'm posting a form to an MVC action using jquery Ajax. Server side, I
I am using PJAX https://github.com/defunkt/jquery-pjax and I was wondering since the whole page does
I am using asp.net mvc, C# and jquery. My site is uses ajax heavily.
I'm having a trouble since jQuery.ajax, in this particular case, doesn't seem to happen,
Using Jquery Ajax i have an entry script index.php This script lets the user
When i submit a jquery ajax request without the data value, it works, when
I would like to clarify how browser scripting (such as javascript/jquery) differs from server

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.