Skip to main content

handle_options

Function handle_options 

Source
pub(crate) fn handle_options(cors_origin: &str) -> Response
Expand description

CORSプリフライト用のOPTIONSリクエストを処理します

Webアプリケーションからのクロスオリジンリクエストを許可するための適切なCORSヘッダーを返します。

§Arguments

  • cors_origin - レスポンスヘッダー用のCORSオリジン

§Returns

CORSヘッダーを含むレスポンス(200 OK)