mirror of
https://github.com/actix/examples
synced 2024-12-05 03:01:55 +01:00
27 lines
489 B
Markdown
27 lines
489 B
Markdown
|
# actix_cors::Cors
|
||
|
|
||
|
## Running Server
|
||
|
|
||
|
```sh
|
||
|
cd cors/backend
|
||
|
cargo run
|
||
|
# starting HTTP server at http://localhost:8080
|
||
|
```
|
||
|
|
||
|
### web client
|
||
|
|
||
|
- [http://localhost:8080/user/info](http://localhost:8080/user/info)
|
||
|
```json5
|
||
|
// payload structure
|
||
|
{
|
||
|
"username": "username",
|
||
|
"email": "email",
|
||
|
"password": "password",
|
||
|
"confirm_password": "password"
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Others
|
||
|
|
||
|
- For more related examples of [actix_cors](https://docs.rs/actix-cors/latest/actix_cors/struct.Cors.html)
|