mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
21 lines
242 B
Markdown
21 lines
242 B
Markdown
# Cross-Origin Resource Sharing (CORS)
|
|
|
|
## Run Server
|
|
|
|
```sh
|
|
cd cors/backend
|
|
cargo run
|
|
```
|
|
|
|
## Run Frontend
|
|
|
|
In a separate terminal, also run:
|
|
|
|
```sh
|
|
cd cors/frontend
|
|
npm install
|
|
npm run serve
|
|
```
|
|
|
|
then open browser at: http://localhost:8080
|