<noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="shortcut icon"href="https://actix.rs/favicon.ico"></head><bodyclass="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../../actix_cors/index.html"><divclass="logo-container"><imgsrc="https://actix.rs/img/logo.png"alt="logo"></div>
<imgsrc="https://actix.rs/img/logo.png"alt="logo"></a><navclass="sub"><divclass="theme-picker hidden"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="22"height="22"alt="Pick another theme!"src="../../brush.svg"></button><divid="theme-choices"role="menu"></div></div><formclass="search-form"><divclass="search-container"><span></span><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../../wheel.svg"></a></div></form></nav></div><sectionid="main-content"class="content"><divclass="example-wrap"><preclass="line-numbers"><spanid="1"> 1</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"`allowed_origin` argument must not be wildcard (`*`)"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"Request header `Origin` is required but was not provided"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"Request header `Access-Control-Request-Method` is required but is missing"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"Request header `Access-Control-Request-Method` has an invalid value"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"Request header `Access-Control-Request-Headers` has an invalid value"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"Origin is not allowed to make this request"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"Requested method is not allowed"</span>)]</span>
<spanclass="attribute">#[<spanclass="ident">display</span>(<spanclass="ident">fmt</span><spanclass="op">=</span><spanclass="string">"One or more request headers are not allowed"</span>)]</span>