Skip to content

Commit 350fd8e

Browse files
add cors layer to app
1 parent 299b601 commit 350fd8e

File tree

1 file changed

+1
-0
lines changed
  • backend/server/src/models

1 file changed

+1
-0
lines changed

backend/server/src/models/app.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,5 +336,6 @@ pub async fn app() -> Result<Router, ChaosError> {
336336
"/api/v1/offer/:offer_id/send",
337337
post(OfferHandler::send_offer),
338338
)
339+
.layer(cors)
339340
.with_state(state))
340341
}

0 commit comments

Comments
 (0)