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

17 lines
248 B
Markdown
Raw Normal View History

# Actix Web CORS example
2020-10-20 00:36:53 +02:00
## Run Server
```sh
cd secutiy/web-cors/backend
2020-10-20 00:36:53 +02:00
cargo run
```
2020-10-20 00:36:53 +02:00
## Run Frontend
In a separate terminal, also run:
```sh
cd secutiy/web-cors/frontend
2020-10-20 00:36:53 +02:00
npm install
npm run serve
```
2020-10-20 00:36:53 +02:00
then open browser at: http://localhost:8080