Skip to content
Snippets Groups Projects
Commit 47c799ba authored by ericj's avatar ericj
Browse files

fix cors caching problem

parent 859c306c
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import {setupCache} from 'axios-cache-interceptor';
import {RecipeResponseType} from "../types/RecipeResponseType.ts";
const axiosInstance = Axios.create();
const axiosCached = setupCache(axiosInstance);
const axiosCached = setupCache(axiosInstance, {cacheTakeover: false});
const parseRecipeResponse = (recipeData: RecipeResponseType) => {
const ingredients = Array.from({length: 20}, (_, i) => ({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment