Skip to content

Commit

Permalink
cors up
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadshahidbeigh committed Oct 21, 2024
1 parent db51a8b commit 70438bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const authLink = new ApolloLink((operation, forward) => {
const client = new ApolloClient({
link: ApolloLink.from([
authLink,
new HttpLink({uri: "http://43.205.10.7:4000/graphql"}), // Replace with your GraphQL API URL
new HttpLink({uri: "http://43.205.10.7:4000"}), // Replace with your GraphQL API URL
]),
cache: new InMemoryCache(),
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/axiosConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import axios from "axios";

const api = axios.create({
baseURL: "http://43.205.10.7:4000/graphql", // Updated to the backend URL
baseURL: "http://43.205.10.7:4000", // Updated to the backend URL
headers: {
"Content-Type": "application/json",
},
Expand Down

0 comments on commit 70438bd

Please sign in to comment.