Skip to content

Commit d5fcc65

Browse files
committed
With CORS if you want to really use it.
1 parent ff192e9 commit d5fcc65

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,5 @@ days/093-096-vuejs/movie_exploder/.idea/dictionaries/mkennedy.xml
161161
.idea/dictionaries/mkennedy.xml
162162
days/050-responder/demo/movie_svc/Pipfile
163163
days/050-responder/demo/movie_svc/Pipfile.lock
164+
days/050-responder/.idea/050-responder.iml
165+
days/050-responder/.idea/encodings.xml

days/093-096-vuejs/movie_svc/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
db.global_init()
77

8-
api.run()
8+
api.run(port=7007)
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
import responder
22

3-
api = responder.API()
3+
cors_params = {
4+
'allow_origins': '*',
5+
'allow_methods': '*',
6+
}
7+
8+
api = responder.API(cors=True, cors_params=cors_params)

0 commit comments

Comments
 (0)