diff --git a/django-vue-graphql/source_code_final/back_end/backend/settings.py b/django-vue-graphql/source_code_final/back_end/backend/settings.py index 7554bb4613..a8a80ba98d 100644 --- a/django-vue-graphql/source_code_final/back_end/backend/settings.py +++ b/django-vue-graphql/source_code_final/back_end/backend/settings.py @@ -132,4 +132,6 @@ "SCHEMA": "blog.schema.schema", } -CORS_ALLOWED_ORIGINS = ("http://localhost:5173",) +CORS_ALLOWED_ORIGINS = [ + "http://localhost:5173", +] diff --git a/django-vue-graphql/source_code_final/front_end/src/main.js b/django-vue-graphql/source_code_final/front_end/src/main.js index 86668b0ef6..4131a2b019 100644 --- a/django-vue-graphql/source_code_final/front_end/src/main.js +++ b/django-vue-graphql/source_code_final/front_end/src/main.js @@ -11,7 +11,7 @@ import { import { DefaultApolloClient } from "@vue/apollo-composable"; const httpLink = createHttpLink({ - uri: "http://localhost:8000/graphql", + uri: "http://localhost:8000/graphql/", }); const cache = new InMemoryCache(); diff --git a/django-vue-graphql/source_code_step_4/back_end/backend/settings.py b/django-vue-graphql/source_code_step_4/back_end/backend/settings.py index 7ab7e4d336..f43dda9d33 100644 --- a/django-vue-graphql/source_code_step_4/back_end/backend/settings.py +++ b/django-vue-graphql/source_code_step_4/back_end/backend/settings.py @@ -132,4 +132,6 @@ "SCHEMA": "blog.schema.schema", } -CORS_ALLOWED_ORIGINS = ("http://localhost:5173",) +CORS_ALLOWED_ORIGINS = [ + "http://localhost:5173", +] diff --git a/django-vue-graphql/source_code_step_5/back_end/backend/settings.py b/django-vue-graphql/source_code_step_5/back_end/backend/settings.py index 7ab7e4d336..f43dda9d33 100644 --- a/django-vue-graphql/source_code_step_5/back_end/backend/settings.py +++ b/django-vue-graphql/source_code_step_5/back_end/backend/settings.py @@ -132,4 +132,6 @@ "SCHEMA": "blog.schema.schema", } -CORS_ALLOWED_ORIGINS = ("http://localhost:5173",) +CORS_ALLOWED_ORIGINS = [ + "http://localhost:5173", +] diff --git a/django-vue-graphql/source_code_step_6/back_end/backend/settings.py b/django-vue-graphql/source_code_step_6/back_end/backend/settings.py index 7ab7e4d336..f43dda9d33 100644 --- a/django-vue-graphql/source_code_step_6/back_end/backend/settings.py +++ b/django-vue-graphql/source_code_step_6/back_end/backend/settings.py @@ -132,4 +132,6 @@ "SCHEMA": "blog.schema.schema", } -CORS_ALLOWED_ORIGINS = ("http://localhost:5173",) +CORS_ALLOWED_ORIGINS = [ + "http://localhost:5173", +] diff --git a/django-vue-graphql/source_code_step_7/back_end/backend/settings.py b/django-vue-graphql/source_code_step_7/back_end/backend/settings.py index 7ab7e4d336..f43dda9d33 100644 --- a/django-vue-graphql/source_code_step_7/back_end/backend/settings.py +++ b/django-vue-graphql/source_code_step_7/back_end/backend/settings.py @@ -132,4 +132,6 @@ "SCHEMA": "blog.schema.schema", } -CORS_ALLOWED_ORIGINS = ("http://localhost:5173",) +CORS_ALLOWED_ORIGINS = [ + "http://localhost:5173", +] diff --git a/django-vue-graphql/source_code_step_8/back_end/backend/settings.py b/django-vue-graphql/source_code_step_8/back_end/backend/settings.py index 7ab7e4d336..f43dda9d33 100644 --- a/django-vue-graphql/source_code_step_8/back_end/backend/settings.py +++ b/django-vue-graphql/source_code_step_8/back_end/backend/settings.py @@ -132,4 +132,6 @@ "SCHEMA": "blog.schema.schema", } -CORS_ALLOWED_ORIGINS = ("http://localhost:5173",) +CORS_ALLOWED_ORIGINS = [ + "http://localhost:5173", +] diff --git a/django-vue-graphql/source_code_step_8/front_end/src/main.js b/django-vue-graphql/source_code_step_8/front_end/src/main.js index 86668b0ef6..4131a2b019 100644 --- a/django-vue-graphql/source_code_step_8/front_end/src/main.js +++ b/django-vue-graphql/source_code_step_8/front_end/src/main.js @@ -11,7 +11,7 @@ import { import { DefaultApolloClient } from "@vue/apollo-composable"; const httpLink = createHttpLink({ - uri: "http://localhost:8000/graphql", + uri: "http://localhost:8000/graphql/", }); const cache = new InMemoryCache();