Very light weight Express middleware module which makes cross origin resource sharing easy.
Very light weight middleware for Express which makes cross origin resource sharing easy.
npm install small-cor
var express = ;var app = ;var smallCOR = ;app;app;app;
An HTTP GET request to localhost:3000 will result in HTTP response which contains the following headers:
origin(string): URI of allowed origin. i.e.
methods(array): Array of strings containing permitted HTTP verbs i.e.
headers(array): Array of strings containing permitted HTTP headers i.e.
credentials(bool): Boolean indicating if browser will allow creditials to be sent.