We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use it in CRA application , when add token in request hot reload will be not work! here is the code!
import CloudUtils from './CloudUtils'; const oldFetch = fetch; const newFetch = (url, options) => { const token = CloudUtils.getToken(); const headers = options.headers || new Headers(); headers.append('aaaa', `bearer ${token}`); options.headers = headers; return oldFetch(`${url}`, options); }; if (window) { window.fetch = newFetch; window.oldFetch = oldFetch; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use it in CRA application , when add token in request hot reload will be not work!
here is the code!
The text was updated successfully, but these errors were encountered: