项目作者: justinjmoses

项目描述 :
Run test environments against local resources. Redirects requests for resources to any other. Useful when you want to run local JS and CSS against a deployed environment.
高级语言: JavaScript
项目地址: git://github.com/justinjmoses/chrome-envious.git
创建时间: 2016-12-09T16:55:26Z
项目社区:https://github.com/justinjmoses/chrome-envious

开源协议:MIT License

下载


Chrome Envious

Replace matching URL requests from one domain to another. Useful when you want to run local JS and CSS against a deployed environment.

Installation

  1. Clone this repo (git clone)
  2. Open Chrome extensions (chrome://extensions/)
  3. Enable Developer Mode (top right checkbox)
  4. Click Load unpacked extension
  5. Chose the cloned repo

Configuration

  1. Click Options to set the match and replace prefixes env-control

Gotchas

If you need to mix content - i.e. replace HTTPS requests with HTTP ones - then you will need to explicitly allow this in Chrome. Click the icon below and then “Load unsafe scripts” help

Changelog

  • 1.1 Fixed issue where scripts loaded via ajax (XHR) would result in Chrome issuing Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight response
  • 1.2 Icon in Chrome toolbar that highlights green when Envious has matched anything in the tab. image