First one #8
+6
-2
@@ -57,8 +57,12 @@ pub mod init {
|
|||||||
_ => {
|
_ => {
|
||||||
// Development (default): Allow localhost origins
|
// Development (default): Allow localhost origins
|
||||||
cors.allow_origin(vec![
|
cors.allow_origin(vec![
|
||||||
"http://localhost:9081".parse().unwrap(),
|
format!("http://localhost:{}", super::super::host::PORT)
|
||||||
"http://127.0.0.1:9081".parse().unwrap(),
|
.parse()
|
||||||
|
.unwrap(),
|
||||||
|
format!("http://127.0.0.1:{}", super::super::host::PORT)
|
||||||
|
.parse()
|
||||||
|
.unwrap(),
|
||||||
"http://localhost:4200".parse().unwrap(),
|
"http://localhost:4200".parse().unwrap(),
|
||||||
"http://127.0.0.1:4200".parse().unwrap(),
|
"http://127.0.0.1:4200".parse().unwrap(),
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user