weihanglo / sfz

A simple static file serving command-line tool written in Rust.
https://crates.io/crates/sfz
Apache License 2.0
400 stars 30 forks source link

feat: add arg `coi` for cross-origin isolation #84

Closed weihanglo closed 2 years ago

weihanglo commented 2 years ago

Resolves #83

Follow this site and implement COOP and COEP headers https://web.dev/coop-coep/

$ cargo run -- --coi

Open the site and check the headers:

image
weihanglo commented 2 years ago

Hi @HKalbasi, could you help me verify that if this works for your scenario, thanks!

HKalbasi commented 2 years ago

That's great, thank you!

image

weihanglo commented 2 years ago

I'll release a new version later. Thank for the report and review!