Commit df8b6401 by Arjun Jhukal

updated the header for the cors issue

parent 2b48c384
......@@ -8,7 +8,7 @@ export const baseQuery = fetchBaseQuery({
const token = (getState() as RootState).auth.access_token;
// headers.set("Accept", "application/json");
headers.set("Content-Type", "application/json");
// headers.set("Content-Type", "application/json");
if (token) {
headers.set("Authorization", `Bearer ${token}`);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment