Skip to content

Instantly share code, notes, and snippets.

View maratumba's full-sized avatar

Yaman Ozakin maratumba

View GitHub Profile
@maratumba
maratumba / Django_CORS.md
Created December 4, 2021 10:10
Troubleshoot Django CORS problems

Every now and then I come across the CORS issue again and again. Here's a check list I made for myself for troubleshooting.

  1. Check the app is installed and is in the right place. It should be after 'rest_framework' and before your own apps (not in docs but in SO):
INSTALLED_APPS = [
    "rest_framework",
    ...,
    "corsheaders",
    ...,
 "myapp",
@maratumba
maratumba / index.vue
Last active June 10, 2020 09:20
Server side data aquisition using nuxt and axios with authorization
<template>
<div>
<div v-for="item in items" :key="item.id">
{{ item.name }}
</div>
</div>
</template>
<script>