How do I add Chrome Extension to django-cors-headers whitelist?

前端 未结 1 575
别跟我提以往
别跟我提以往 2021-01-20 03:36

I am creating a Chrome extension that allows the user to POST to the Django server.

Currently, I am using django-cors-headers with the setting:

CORS_ORIGIN_

相关标签:
1条回答
  • 2021-01-20 04:38

    Okay, here's a simple answer: don't do it server-side.

    An extension with a host permission will ignore CORS headers and the request will be sent out regardless.

    0 讨论(0)
提交回复
热议问题