Skip to content

Commit b8fabd5

Browse files
authored
fix(functions): fix corst-rust example (#96)
1 parent 0c2d35a commit b8fabd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/cors-rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use axum::{body::Body, extract::Request, response::Response};
22
use http::StatusCode;
33

44
// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers
5-
pub fn with_permissive_cors(r: response::Builder) -> response::Builder {
5+
pub fn with_permissive_cors(r: http::response::Builder) -> http::response::Builder {
66
r.header("Access-Control-Allow-Headers", "*")
77
.header("Access-Control-Allow-Methods", "*")
88
.header("Access-Control-Allow-Origin", "*")

0 commit comments

Comments
 (0)