1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 09:42:40 +01:00
actix-extras/examples/web-cors/README.md

16 lines
224 B
Markdown
Raw Normal View History

2018-01-27 04:56:34 +01:00
# Actix Web CORS example
2018-01-27 04:00:26 +01:00
## start
1 - backend server
```bash
2018-01-27 04:56:34 +01:00
$ cd web-cors/backend
2018-01-27 04:00:26 +01:00
$ cargo run
```
2 - fontend server
```bash
2018-01-27 04:56:34 +01:00
$ cd web-cors/fontend
2018-01-27 04:00:26 +01:00
$ npm install
$ npm run dev
```
then open broswer 'http://localhost:1234/'