corsemall

Serves JSON data with CORS allowed from *.json files at given path.


Keywords
cors, cors-request, flask, javascript-applications, python, tool
License
MIT
Install
pip install corsemall==0.2.0

Documentation

corsemall - serve JSON CORS for local JS dev

corsemall - CORS 'em all

https://travis-ci.org/hvnsweeting/corsemall.svg?branch=master

For developing JavaScript applications, which get data from backend. There are circustances that backend not available, or on a remote has not allow CORS (yet), or the network is just too slow. This helps bypass these problems by saving the data once to local '.json' files (manually) then serves them from local.

Installation

By using pip:

pip install corsemall

Usage

To serve JSON files at path with CORS allowed for all, run:

corsemall PATH_TO_DIRECTORY_CONTAINS_JSON_FILE

Features

  • Supports both Python2 and Python3
  • Run on Linux, OSX, Windows

Authors

Viet Hung Nguyen <hvn@familug.org>