Have ideas to improve npm?Join in the discussion! »

    cross-origin

    1.0.6 • Public • Published

    cross-origin

    npm version

    cross-origin for express

    Installation

    npm install cross-origin --save
    

    Usage

    var express = require('express');
    var app = express();
    var crossOrigin = require('cross-origin');
    app.use(crossOrigin);
    ...
    
    • origin: *
    • allowMethods: GET,HEAD,PUT,POST,DELETE,PATCH

    Install

    npm i cross-origin

    DownloadsWeekly Downloads

    4

    Version

    1.0.6

    License

    ISC

    Last publish

    Collaborators

    • avatar