We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2d35a commit b8fabd5Copy full SHA for b8fabd5
functions/cors-rust/src/lib.rs
@@ -2,7 +2,7 @@ use axum::{body::Body, extract::Request, response::Response};
2
use http::StatusCode;
3
4
// 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 {
+pub fn with_permissive_cors(r: http::response::Builder) -> http::response::Builder {
6
r.header("Access-Control-Allow-Headers", "*")
7
.header("Access-Control-Allow-Methods", "*")
8
.header("Access-Control-Allow-Origin", "*")
0 commit comments