---
# System prepended metadata

title: CORS
tags: [全端]

---

# Cross-Origin Resource Sharing (CORS)

- 概念介紹
    - https://ithelp.ithome.com.tw/articles/10267360
- Django 解決方法
    - https://stackoverflow.com/questions/22355540/access-control-allow-origin-in-django-app
- django-cors-headers 官網
    - https://github.com/adamchainz/django-cors-headers

:::info
==CSRF Token 的要求== 在開發階段要手動註解掉這個 Middleware App： `'django.middleware.csrf.CsrfViewMiddleware'` 
:::