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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:01:37+00:00 2026-06-10T12:01:37+00:00

Within our web application we are using the following method of server communication XMLHttpRequest

  • 0

Within our web application we are using the following method of server communication

  • XMLHttpRequest

We are sending the same content/data in both cases but the XMLHttpRequest is ran inside a webwork.

The browser that is been used is chrome with –disable-web-security flag.

Is there any reason why a web worker XMLHttpRequest would fail inside the worker but not outside?

If the exact same code for the XMLHttpRequest is moved from the worker to normal JavaScript it works perfect?

ERROR:

XMLHttpRequest cannot load URL. Origin file:// is not allowed by Access-Control-Allow-Origin.

  • 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-10T12:01:39+00:00Added an answer on June 10, 2026 at 12:01 pm

    Update:

    After a lot of effort from most of the team here what we have discovered is that in Chrome, web workers appear to run with different security over that of the main browser. (by this I mean when the browser runs with –disable-web-security the web worker doesn’t).

    We were trying to access a domain resource (http://domain.com/resource) from (file:///). Despite the browser running with web security disable, the resolution was to have the server respond with a header of ‘Access-Control-Allow-Origin: *’.

    Although we could have used file:/// instead of the wildcard we can’t be sure of how this might change across devices in production, and as we are running in a closed network this is less of a concern.

    The code at the end of the day remains completely unchanged and only this change in the headers of the server resonse was needed.

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

Sidebar

Related Questions

For our mobile web application using the Facebook Javascript SDK, we want to check
Our team have built a web application using Ruby on Rails. It currently doesn't
We need to display JBoss log files from within our web application. Is it
We are testing using security realms with our web application. In test we will
I have worked within a web development company where we had our local machines,
We are using windows azure table for logging errors within our applications hosted inside
We are in the process of creating active-x controls used within our application. Since
I'm writing a ASP.NET application used within our company. Now I want to send
We currently have a fully developed web forms application, basically its like WordPress using
I have an Android application that has one section loading a web page within

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.