mirror of
https://github.com/actix/examples
synced 2025-02-17 07:23:29 +01:00
doc: add README.md into cors/backend (#618)
This commit is contained in:
parent
e6eeace5d5
commit
866ad278d5
@ -1,6 +1,6 @@
|
|||||||
# Cross-Origin Resource Sharing (CORS)
|
# Cross-Origin Resource Sharing (CORS)
|
||||||
|
|
||||||
## Run Server
|
## [Run Server](backend/README.md)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd cors/backend
|
cd cors/backend
|
||||||
|
26
cors/backend/README.md
Normal file
26
cors/backend/README.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# 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)
|
Loading…
x
Reference in New Issue
Block a user