arthurfiorette / axios-cache-interceptor

📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!
https://axios-cache-interceptor.js.org
MIT License
703 stars 58 forks source link

Bug: CORS Error using setupCache #787

Closed mehranml closed 9 months ago

mehranml commented 9 months ago

What happened?

A bug happened! as i change my default axios instance to setupCache setup i get CORS error on sending GET request to https://api.raydium.io/v2/sdk/farm-v2/mainnet.json

axios-cache-interceptor version

1.5.1

Node / Browser Version

20.10

Axios Version

1.6.7

What storage is being used

Web Storage

Relevant debugging log output

Third-party cookie will be blocked. Learn more in the Issues tab.
4
Access to XMLHttpRequest at 'https://api.raydium.io/v2/sdk/farm-v2/mainnet.json' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field pragma is not allowed by Access-Control-Allow-Headers in preflight response.
arthurfiorette commented 9 months ago

https://axios-cache-interceptor.js.org/config/request-specifics#cache-cachetakeover

image

image