From 00ffe953548105304dc1d94ee52ecdc56ed89857 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 21 Nov 2020 16:39:35 +0100 Subject: [PATCH] fix broken doc links --- src/cors.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cors.rs b/src/cors.rs index 9b0c802..717bbf6 100644 --- a/src/cors.rs +++ b/src/cors.rs @@ -140,13 +140,13 @@ impl Middleware for CorsConfig { /** Handle CORS for a non-preflight request. This means manipulating the `res` HTTP headers so that -the response is aligned with the `state`'s [`CorsConfig`]. +the response is aligned with the `state`'s [CorsConfig]. -If you are using the [`Resource`] type (which is the recommended way), you'll never have to call +If you are using the [Resource](crate::Resource) type (which is the recommended way), you'll never have to call this method. However, if you are writing your own handler method, you might want to call this after your request to add the required CORS headers. -For further information on CORS, read https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS. +For further information on CORS, read [https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). [`CorsConfig`]: ./struct.CorsConfig.html */