mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 23:07:01 +00:00
cors in the example
This commit is contained in:
parent
b39b30694e
commit
7268cc0567
2 changed files with 10 additions and 4 deletions
|
@ -66,10 +66,7 @@ fn test_preflight(server : &TestServer, method : &str, origin : Option<&str>, va
|
|||
#[test]
|
||||
fn cors_origin_none()
|
||||
{
|
||||
let cfg = CorsConfig {
|
||||
origin: Origin::None,
|
||||
..Default::default()
|
||||
};
|
||||
let cfg = Default::default();
|
||||
let server = test_server(cfg);
|
||||
|
||||
test_preflight(&server, "PUT", None, "Access-Control-Request-Method", false, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue