Skip to content

Commit

Permalink
Add minor code updates
Browse files Browse the repository at this point in the history
  • Loading branch information
acsany committed Jan 13, 2025
1 parent 1b0275c commit 0c742ae
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@
"SCHEMA": "blog.schema.schema",
}

CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
]
2 changes: 1 addition & 1 deletion django-vue-graphql/source_code_final/front_end/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@
"SCHEMA": "blog.schema.schema",
}

CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
]
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@
"SCHEMA": "blog.schema.schema",
}

CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
]
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@
"SCHEMA": "blog.schema.schema",
}

CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
]
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@
"SCHEMA": "blog.schema.schema",
}

CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
]
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@
"SCHEMA": "blog.schema.schema",
}

CORS_ALLOWED_ORIGINS = ("http://localhost:5173",)
CORS_ALLOWED_ORIGINS = [
"http://localhost:5173",
]
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0c742ae

Please sign in to comment.