Skip to content

Commit 0c742ae

Browse files
committed
Add minor code updates
1 parent 1b0275c commit 0c742ae

File tree

8 files changed

+20
-8
lines changed

8 files changed

+20
-8
lines changed

django-vue-graphql/source_code_final/back_end/backend/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@
132132
"SCHEMA": "blog.schema.schema",
133133
}
134134

135-
CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
135+
CORS_ALLOWED_ORIGINS = [
136+
"http://localhost:5173",
137+
]

django-vue-graphql/source_code_final/front_end/src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { DefaultApolloClient } from "@vue/apollo-composable";
1212

1313
const httpLink = createHttpLink({
14-
uri: "http://localhost:8000/graphql",
14+
uri: "http://localhost:8000/graphql/",
1515
});
1616

1717
const cache = new InMemoryCache();

django-vue-graphql/source_code_step_4/back_end/backend/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@
132132
"SCHEMA": "blog.schema.schema",
133133
}
134134

135-
CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
135+
CORS_ALLOWED_ORIGINS = [
136+
"http://localhost:5173",
137+
]

django-vue-graphql/source_code_step_5/back_end/backend/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@
132132
"SCHEMA": "blog.schema.schema",
133133
}
134134

135-
CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
135+
CORS_ALLOWED_ORIGINS = [
136+
"http://localhost:5173",
137+
]

django-vue-graphql/source_code_step_6/back_end/backend/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@
132132
"SCHEMA": "blog.schema.schema",
133133
}
134134

135-
CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
135+
CORS_ALLOWED_ORIGINS = [
136+
"http://localhost:5173",
137+
]

django-vue-graphql/source_code_step_7/back_end/backend/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@
132132
"SCHEMA": "blog.schema.schema",
133133
}
134134

135-
CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
135+
CORS_ALLOWED_ORIGINS = [
136+
"http://localhost:5173",
137+
]

django-vue-graphql/source_code_step_8/back_end/backend/settings.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,6 @@
132132
"SCHEMA": "blog.schema.schema",
133133
}
134134

135-
CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
135+
CORS_ALLOWED_ORIGINS = [
136+
"http://localhost:5173",
137+
]

django-vue-graphql/source_code_step_8/front_end/src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { DefaultApolloClient } from "@vue/apollo-composable";
1212

1313
const httpLink = createHttpLink({
14-
uri: "http://localhost:8000/graphql",
14+
uri: "http://localhost:8000/graphql/",
1515
});
1616

1717
const cache = new InMemoryCache();

0 commit comments

Comments
 (0)