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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:10:05+00:00 2026-06-09T13:10:05+00:00

i am using requires.js 2.0. I have the following simplified use case: my HTML

  • 0

i am using requires.js 2.0. I have the following simplified use case:

my HTML file:

<!DOCTYPE HTML>
<html>
<head>
    <title></title>
    <script type="text/javascript" data-main="apptest.js" src="../_js/libs/require/require.js"></script>
</head>
<body>

</body>
</html>

And then in apptest.js:

requirejs.config({
    paths: {
        'text': '../_js/libs/require/text'
    }
});

requirejs(
    ['text!boxes.html'],

    function (Boxes) {
        alert("done");
    }
);

Ok, so it doesn’t really do much, but enough to make my point. Only in Firefox (14.0.1) i get an exception “uncaught exception: java.security.AccessControlException: access denied (java.io.FilePermission .\boxes.html read)”.

So, require.js successfully loaded the text plugin, but fails loading my html file, which i want to use as a template later on. In Google Chrome and even IE9 it works just fine. I am on Windows 7.

I am running this on a local webserver, so no file://… requests here.

I have checked, if i have any special permissions set on the html file, but have not found anything suspicious.

Anyone have an idea?

Update: Running the test in Firefox 13.0.1 does actually work for me without errors. So could it be, that this is a bug, that has been introduced in firefox 14?

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

    I was having the same problem a minute ago. I’ve fixed it by doing the following in the main.js file (where you setup the config)

    Before the

    require.config({..... 
    

    add the following code:

    Packages = undefined;
    

    This should do the trick.

    You should have something like this:

    Packages = undefined;
    
    require.config({
        baseUrl: theAppBaseUrl,
        paths: {
    

    Basically the explanation is that it is trying to use Java to get the file instead of an ajax request (for whatever reason). This forces it to use an XHR object to fetch it.

    Cheers!

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

Sidebar

Related Questions

I have the following task: download a file using HTTPS and authentication. Indy seems
I have recently just created Java project using Eclipse that requires 2 JAR files
I currently have an application I'm writing in c# (using .NET) that requires me
I am serializing objects to XML using System.Xml.Serialization and this requires me to have
I have one text box on that text box i am using required field
I am trying to include the Zend_Service_Amazon_S3 file by using require_once 'Zend/Service/Amazon/S3.php'; I have
I have a table schema similar to the following (simplified): CREATE TABLE Transactions (
I have the following project structure using a Domain Model, StructureMap and Fluent NHibernate:
I have the following setup (simplified, obviously): An abstract class, with an A object
I'm using the Sass-Bootstrap gem in my project and have the following in my

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.