Add ACAO header
This commit is contained in:
@ -90,6 +90,7 @@ fn endpoint_handler(
|
|||||||
endpoint: &str,
|
endpoint: &str,
|
||||||
) {
|
) {
|
||||||
res.add_header("Cache-Control", "no-store");
|
res.add_header("Cache-Control", "no-store");
|
||||||
|
res.add_header("Access-Control-Allow-Origin", "*");
|
||||||
|
|
||||||
let mut error = |error: Error, client: &mut super::HttpStream| {
|
let mut error = |error: Error, client: &mut super::HttpStream| {
|
||||||
println!("{}", error.to_string());
|
println!("{}", error.to_string());
|
||||||
|
Reference in New Issue
Block a user