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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:51:11+00:00 2026-06-13T13:51:11+00:00

I have a website at example.com and I am serving all external resources from

  • 0

I have a website at example.com and I am serving all external resources from cdn.example.com. So in my HTML page at example.com I have something like:

<script type="text/javascript" src="http://cdn.example.com/script.js"></script>

In my script I want to create a Web Worker, so I do:

worker = new Worker("http://cdn.example.com/script.js");

But this fails on Firefox 16 with Failed to load script: http://cdn.example.com/script.js (nsresult = 0x805303f4) error. It works on Safari 6 and Chrome 22.

It seems the problem is because origins differ. Effective origin of the script is example.com and cdn.example.com does not match that. This seems a bug because not CORS not setting document.domain helps (or at least I couldn’t make it to work by playing with that). Is there any way to make it work?

  • 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-13T13:51:12+00:00Added an answer on June 13, 2026 at 1:51 pm

    At the end I made website at example.com serve a simple JavaScript code which includes the real web worked code:

    importScripts('http://cdn.example.com/script.js');
    

    and then create web worker by pointing to that.

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

Sidebar

Related Questions

I have an website with URL`s like example.com/index.php?p=home An this script $(document).ready(function() { var
I have updated my website. Previously there were links like these: http://example.com/bla-bla-bla?language=de . After
I have problem with Alexa tracking for a website (eg: example.com) that redirects from
I have a website like www.example.com , I want to redirect each hit to
I have a website let's say www.example.com and I have a subdomain something.example.com Both
I have a website sitting on an IIS 7 server: WWW.example.COM I would like
Say I have the website http://www.example.org and the corresponding Facebook page at http://www.facebook.com/example .
I was already running a sub-website under following path http://example.com/sub-site/ Now, I have created
I have two websites: http://example.com http://example.com/sub I have a page, let's say: http://example.com/sub/page1 Is
I have a website called example.com with several internal pages that are liked. 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.