1
0
mirror of https://github.com/actix/examples synced 2024-12-18 00:13:57 +01:00
examples/cors/README.md

21 lines
261 B
Markdown
Raw Normal View History

2022-03-06 01:43:10 +01:00
# Cross-Origin Resource Sharing (CORS)
## [Run Server](backend/README.md)
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
2023-07-18 23:54:35 +02:00
npm run dev
```
2022-03-06 01:43:10 +01:00
2020-10-20 00:36:53 +02:00
then open browser at: http://localhost:8080