Skip to content

Commit

Permalink
Allow CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
suminb committed May 27, 2018
1 parent d78266e commit 73803d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ functions:
- http: GET /discuss
- http: GET /disclaimers
- http: GET /locale
- http: GET /api/v1.4/translate
- http: POST /api/v1.4/translate
- http:
path: /api/v1.4/translate
method: GET
origin: '*'
- http:
path: /api/v1.4/translate
method: POST
origin: '*'

custom:
wsgi:
Expand Down

0 comments on commit 73803d6

Please sign in to comment.