HttpSettingsExtensions.

SetOrigin(HttpSettings, string) Method

Summary

Sets the origin header to initiate a request for cross-origin resource sharing (asks server for an 'Access-Control-Allow-Origin' response field).
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpSettingsExtensions

Syntax

public static HttpSettings SetOrigin(this HttpSettings settings, string url)

Parameters

Name Type Description
settings HttpSettings The settings.
url string the url to apply to the "origin" header

Return Value

Type Description
HttpSettings The same HttpSettings instance so that multiple calls can be chained.