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 have to provide a special header in order to fetch. I am trying the following:
let response = await fetch( `https://api.allorigins.win/get?url=${encodeURIComponent('https://platform.tier-services.io/v1/vehicle?zoneId=BERLIN')}`, { headers: { "X-Api-Key": "MY_KEY" } });
but I always receive: Request header field x-api-key is not allowed by Access-Control-Allow-Headers in preflight response.
Request header field x-api-key is not allowed by Access-Control-Allow-Headers in preflight response.
Any ideas how to correctly provide the headers?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have to provide a special header in order to fetch. I am trying the following:
but I always receive:
Request header field x-api-key is not allowed by Access-Control-Allow-Headers in preflight response.
Any ideas how to correctly provide the headers?
The text was updated successfully, but these errors were encountered: