1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/cors/README.md

21 lines
242 B
Markdown
Raw Normal View History

2022-03-06 01:43:10 +01:00
# Cross-Origin Resource Sharing (CORS)
2020-10-20 00:36:53 +02:00
## Run Server
2022-03-06 01:43:10 +01:00
2020-10-20 00:36:53 +02:00
```sh
2022-02-18 03:18:44 +01:00
cd cors/backend
2020-10-20 00:36:53 +02:00
cargo run
```
2020-10-20 00:36:53 +02:00
## Run Frontend
2022-03-06 01:43:10 +01:00
2020-10-20 00:36:53 +02:00
In a separate terminal, also run:
2022-03-06 01:43:10 +01:00
2020-10-20 00:36:53 +02:00
```sh
2022-02-18 03:18:44 +01:00
cd cors/frontend
2020-10-20 00:36:53 +02:00
npm install
npm run serve
```
2022-03-06 01:43:10 +01:00
2020-10-20 00:36:53 +02:00
then open browser at: http://localhost:8080