Firefox SecurityError: "The operation is insecure."

I am using Backbone.LocalStorage plugin with backbone app. It is working fine in chrome and safari however, it is giving me below error in firefox.

DOMException [SecurityError: "The operation is insecure." code: 18 nsresult: 0x80530012 location: http://localhost:8000/js/libs/backbone.localStorage/backbone.localStorage.js?version=1453910702146:137]

I am using python simpleHttpServer

How can I resolve this error?


Here is my code.

paths: {
    'jquery'        : 'libs/jquery/dist/jquery',
    'underscore'    : 'libs/underscore/underscore',
    'backbone'      : 'libs/backbone/backbone',
    'localStorage'  : 'libs/backbone.localStorage/backbone.localStorage',
    'text'          : 'plugins/text'

Here is collection where localStorage is used.

var Items = Backbone.Collection.extend({

    model: SomeModel,

    localStorage: new Backbone.LocalStorage('items'),


I am using firefox 36.


It seems like it is a CORS issue but my firefox version is 36. Which should be fine.


I am also getting this error in firefox nightly version 44. I also updated my firefox to version 44. Still same error.

Make sure Firefox has cookies enabled. The setting can be found under Menu/Options/Privacy/History

In the dropdown, select either 'Remember History' or if You prefer use custom settings for history, but select option Accept cookies from sites

Hope it helps.

Firefox SecurityError: "The operation is insecure.", This happens when we try to access a resource (CSS) that is located on a different domain. To deal with this error we can use this: try { //your� Teams. Q&A for Work. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

This happens when we try to access a resource (CSS...) that is located on a different domain. To deal with this error we can use this:

                   try {
                     //your critical access to ressources !
                     //rules = document.styleSheets[i].cssRules;
                        } catch(e) {
                   if( !== "SecurityError") {
                       throw e;

Logging in to Firefox Sync does not work because of "SecurityError , I am running Firefox 33.1 on Windows 8.1 Pro 64bit. The debugging console displays the error "SecurityError: The operation is insecure"� Logging in to Firefox Sync does not work because of "SecurityError: The operation is insecure" 3 replies

Make sure your domains are same. verify Same Origin Policy which means same domain, subdomain, protocol (http vs https) and same port.

What is Same Origin Policy? How does pushState protect against potential content forgeries?

1094652, The Developer console shows: "SecurityError: The operation is insecure." The expected result is that it shows the login <input> boxes, Firefox logo etc. I haven't � Firefox SecurityError: The operation is insecure #826. Closed seanpringle opened this issue Aug 5, 2016 · 1 comment Closed Firefox SecurityError: The operation

I had similar issue with one script, I dig into error and found it required SSL websockets, so I started SSL and again checked, and It worked. Try enabling HTTPS and access website as It may solve error.

939269, User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0. Steps to reproduce: Firefox Mozzila v70.0.1. Steps to reproduce:. The error happens due to this issue: Firefox not able to enumerate document.styleSheets [].cssRules [] for cross-domain stylesheets. When i comment out a Google Fonts stylesheet, elementQuery starts working in Firefox.

Firefox v.70.0.1, Third-party antivirus software can interfere with Firefox's secure connections. You could try reinstalling it, which might trigger the software into placing its certificates � If you see the following error messages, Firefox is trying to access the Internet through a proxy server: The proxy server is refusing connections Unable to find the proxy server If you connect to the Internet through a proxy, compare Firefox's settings to Internet Explorer's — see Microsoft's guide to proxy settings.

How to troubleshoot security error codes on secure websites , localStorage throws Security error: "The operation is insecure"! with a later version of Firefox (55.0) that I installed a few minutes ago -- and it works fine! To update the firefox browser to the latest version go to Menu->Help->About Firefox. Here click Check for updates and if the update is there then click to update your Firefox browser. Also it is good practice to keep your firefox updated as to remain secure, bugs free and for better performance.

1381307, Without using adapter.js at Firefox SecurityError: The operation is insecure. debugger eval code:152 mediaStreamTrackPromise debugger eval code:152� Typically, I've seen this error when a site iterates through all IFRAMEs on the page, and performs some action on each one regardless of its origin. In the case of the Vim-Vixen frame, doing almost anything will cause a cross-origin security exception, because its SRC is a moz-extension URL.

  • I am still waiting for this. I need this help quickly. Please help
  • Hope you are using firefox 29. then its a firefox bug
  • I am using firefox 36.
  • Also with Firefox 60 ... :(
  • FF 61.0.2 here and trying to figure this out, when it works in Chrome and Edge.
  • Thank you @ImMaax
  • I know it is the problem of Same Origin Policy however, I am not sure how can I resolve this? I also don't see why this occurs because I am not sending any request to another domain. All resources are in same domain i.e. localhost in this case.
  • place your code snippet in your question to proceed further