1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/cors/backend/README.md

27 lines
488 B
Markdown
Raw Normal View History

# 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)
2024-08-07 03:04:57 +02:00
```json
// 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)