Skip to content

hvnsweeting/corsemall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Serves local JSON files with CORS allow header

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages