import { NextFunction , Request , Response } from "express" ; export function crossOrigin ( _ , response , next ) { response . setHeader ( 'Access-Control-Allow-Origin' , '*' ) ; response . setHeader ( 'Access-Control-Allow-Methods' , '*' ) ; response . setHeader ( 'Access-Control-Allow-Headers' , '*' ) ; next ( ) ; }