1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-22 20:52:27 +00:00

fix broken doc links

This commit is contained in:
Dominic 2020-11-21 16:39:35 +01:00
parent 37aa497e59
commit 00ffe95354
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -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
*/