import { SendRequest , PipelineRequest , PipelineResponse } from "@azure/core-rest-pipeline" ; export default class OriginPolicy { private origin : string | undefined ; name : string ; constructor ( name , origin ? ) { this . name = name ; this . origin = origin ; } async sendRequest ( request , next ) { request . headers . set ( "Origin" , `${ this . origin }` ) ; const response = await next ( request ) ; return response ; } }