Giter Club home page Giter Club logo

cookiesync's Introduction

CookieSync

This is an add-on which copies cookies to localhost.

This addon monitors all incoming cookies from a user defined hostname regex and matching a user defined cookie name regex to copy them to the http://localhost domain.

It's primary here for developers that have code running on their localhost which connects to other services and need access to their cookies. The typical use case is a third-party login flow. In production the developer's code wil run on the same domain as the other services and have access to the cookies they set. But when code is running on localhost (during development), those cookies are not accessible in the browser. This add on makes those cookies available on localhost, so available to the developer's local code.

Screenshot:

Firefox

Chrome

Compatibility

  • Firefox
  • Chrome

Plugin development notes

This is relevant when changes are needed to the plugin.

Firefox

Run from files

You can let firefox use the addon directly from the files in this folder, instead of via the store. Go to about:debugging#/runtime/this-firefox in a Firefox tab. Choose 'Load Temporary Add-on...' and select the manifest.json here. An addon can log using console.log() statements. To get a view on these: Menu > Tools > Browser Tools > Browser Console. Make sure that 'Show Content Messages' is checked in the top right settings popup menu.

Packaging

Repackage the addon in firefox folder via :

zip -r -FS CookieSync.zip background.js icon* manifest.json popup*

Chrome

You can let Chrome run the extension directly from the files in this folder, instead of via the store. Go to chrome://extensions. Enable developer mode toggle switch. Click 'Load unpacked' button and choose chrome folder Click on the blue background page link to open console log window. Click the reload button when making changes.

Packaging

Repackage the extension in chrome folder via :

zip -r -FS CookieSync.zip background.js icon* manifest.json popup*

cookiesync's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.