diff options
| author | Fuwn <[email protected]> | 2022-03-08 04:39:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-08 04:39:55 +0000 |
| commit | 4fd3e42f8c894d33d77bf9060fbcac02e4eed711 (patch) | |
| tree | 250daecc2eef6c4934af6aa1a8bc2a8ba92c7029 /src/lib.rs | |
| parent | fix(routes): index version (diff) | |
| download | api-worker-4fd3e42f8c894d33d77bf9060fbcac02e4eed711.tar.xz api-worker-4fd3e42f8c894d33d77bf9060fbcac02e4eed711.zip | |
fix: cors
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -63,7 +63,8 @@ pub async fn main( Response::from_json(&serde_json::json!({ "crate_version": env!("CARGO_PKG_VERSION"), "git_commit_hash": env!("GIT_COMMIT_HASH"), - })) + }))? + .with_cors(&utils::cors()) }) .run(request, environment) .await |