javascript - Firefox SecurityError: "The operation is insecure." -


i using backbone.localstorage plugin backbone app. working fine in chrome , safari however, giving me below error in firefox.

domexception [securityerror: "the operation insecure." code: 18 nsresult: 0x80530012 location: http://localhost:8000/js/libs/backbone.localstorage/backbone.localstorage.js?version=1453910702146:137]

i using python simplehttpserver

how can resolve error?

update

here 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 collection localstorage used.

var items = backbone.collection.extend({      model: somemodel,      localstorage: new backbone.localstorage('items'), }); 

update 2

i using firefox 36.

update 3

it seems cors issue firefox version 36. should fine.

update 4

i getting error in firefox nightly version 44. updated firefox version 44. still same error.

make sure firefox has coockies enabled. setting can found under menu/options/privacy/history

in dropdown there select either remember history or if prefer use custom settings history, select option accept cookies sites

hope helps.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -