We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea6896c commit 3ddbd6aCopy full SHA for 3ddbd6a
1 file changed
crates/devtools-core/src/server.rs
@@ -55,13 +55,8 @@ impl Server {
55
let cors = CorsLayer::new()
56
// allow `GET` and `POST` when accessing the resource
57
.allow_methods([Method::GET, Method::POST])
58
- .allow_headers(AllowHeaders::any());
59
-
60
- let cors = if option_env!("__DEVTOOLS_LOCAL_DEVELOPMENT").is_some() {
61
- cors.allow_origin(tower_http::cors::Any)
62
- } else {
63
- cors.allow_origin(HeaderValue::from_str("https://devtools.crabnebula.dev").unwrap())
64
- };
+ .allow_headers(AllowHeaders::any())
+ .allow_origin(tower_http::cors::Any);
65
66
let router = tonic::transport::Server::builder()
67
.accept_http1(true)
0 commit comments