1PasswordAnywhere without Dropbox

DaveFL
DaveFL
Community Member

Is it possible to use 1PasswordAnywhere without dropbox? E.g. off of a USB.

Comments

  • RichardPayne
    RichardPayne
    Community Member

    You'd need to run a small local web server like this one:
    https://discussions.agilebits.com/discussion/comment/186073#Comment_186073

  • Hi @DaveFL,

    It isn't impossible, but would require a setup pretty far outside the norm. Dropbox is the way to go if you want to use 1PasswordAnywhere.

    Thanks!

    Ben

  • DaveFL
    DaveFL
    Community Member

    Is there anyway to get this working with Firefox portable?

    I've tried setting:

    security.fileuri.strict_origin_policy = false

    But still does not work. It does work with Chrome's --allow-file-access-from-files but I prefer firefox since there seem to be some other issues with Chrome portable.

  • Hi @DaveFL,

    This page from Mozilla may help:

    http://kb.mozillazine.org/Links_to_local_pages_do_not_work

    The key is to enable access to local files. Note that this could open up a potential security hole, allowing websites access to your local file system, so you'll want to be very careful what websites you visit with this security check disabled.

    Our recommendation would be to use Dropbox.

    Thanks!

    Ben

  • RichardPayne
    RichardPayne
    Community Member

    Just donwload Mongoose and run your own mini web server
    https://code.google.com/p/mongoose/

  • DaveFL
    DaveFL
    Community Member
    edited March 2015

    The issue seems to be that when the encryption file is loaded via Firefox it does not know the return type. This is fixed by the following:

    Which is around line 2982. Not an issue with web server as web server specifies the mime type. Chrome does not seem to have this issue.

    $.ajax({
        url: file,
                dataType: "json", // Added this
        success: function(data, textStatus, request){ onSuccess(request.responseText);},
        error: function() { alert('A problem occurred when loading the "' + file + '" file.'); }, 
    });
    
  • RichardPayne
    RichardPayne
    Community Member

    My suggestion of using local web server was to avoid having to turn off local file security rather than to fix Firefox.

  • DaveFL
    DaveFL
    Community Member
    edited March 2015

    You don't have to turn off local security with this fix (firefox doesn't seem to care). Can agile bits fix this. This is kind of a bug.

    Code should actually be:

    function loadFile(file, onSuccess) {
        enableFirefoxPrivileges();
        $.ajaxSetup({ beforeSend: function(xhr){
            if (xhr.overrideMimeType)
                xhr.overrideMimeType("application/json");
            }
        });
    
        $.ajax({
        url: file,
                success: function(data, textStatus, request){ onSuccess(request.responseText);},
                error: function() { alert('A problem occurred when loading the "' + file + '" file.'); }, 
        });
    }
    
  • Thanks for the feedback. I'll be happy to pass it along to our developers.

    ref: OPM-2894

This discussion has been closed.