Click or drag to resize
IResponderAddCorsHeaders Method
Adds CORS headers to a successful response.

Namespace: VirtualRadar.Interface.WebServer
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
void AddCorsHeaders(
	IRequest request,
	IResponse response
)

Parameters

request
Type: VirtualRadar.Interface.WebServerIRequest
response
Type: VirtualRadar.Interface.WebServerIResponse
Remarks
All of the responder's Send methods are expected to call this when setting headers. The function has been exposed so that custom responses can also set the headers without having to call a Send method.
See Also