Skip to content

Commit

Permalink
Allow Content-type header in CorsMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
LowkeyCoding committed Nov 2, 2023
1 parent 58b2d74 commit b1d6dd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stregsystem/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def handle_preflight(req):

CorsMiddleware.set_origin_access(req, res)
res['access-control-allow-methods'] = 'POST, GET, OPTIONS, DELETE'
res['Access-Control-Allow-Headers'] = 'Content-type'
res['access-control-max-age'] = '86400'

return res

0 comments on commit b1d6dd3

Please sign in to comment.