Skip to content

Commit

Permalink
Fix CORS support (#126)
Browse files Browse the repository at this point in the history
* Fix CORS support

* Update crates/figma-agent/src/main.rs

---------

Co-authored-by: Hikari Hayashi <rev.hikari@gmail.com>
  • Loading branch information
johnf and latin-1 authored Jan 8, 2024
1 parent 51502d2 commit e16687f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/figma-agent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async fn main() -> io::Result<()> {
.wrap(
Cors::default()
.allowed_origin(ORIGIN)
.allowed_methods(vec!["GET"])
.allow_private_network_access(),
)
.service(
Expand Down

0 comments on commit e16687f

Please sign in to comment.