CORS Access-Control-Allow-Origin despite correct headers

前端 未结 3 1802
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-06 19:34

I am trying to set up simple Cross-Origin Resource Sharing using jQuery (1.7.1) powered ajax on the client and apache served python (django) server. According to all the in

3条回答
  •  醉话见心
    2020-12-06 20:10

    I was using the excellent django-cors-headers library and ran into this problem as well. For me, the solution was to add 'accept-encoding' to the default CORS_ALLOW_HEADERS tuple.

提交回复
热议问题