New issue
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
How to use headers? #2
Comments
Hi @hateCarrot, |
hi @mbasso "XMLHttpRequest cannot load http://konanlink-test.elasticbeanstalk.com/v1/device/list.json. Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response." The above address is normally returned when running as postman. So it does not seem to be a server problem. Do I have something more to do? Thank you for your reply. |
and Here is request code. <Request
url='http://konanlink-test.elasticbeanstalk.com/v1/device/list.json'
method='post'
type='application/x-www-form-urlencoded'
accept='application/json'
headers={{"Authorization":"ApiKey api_key=blah blah"}}
verbose={true}
send='{"offset":"0","limit":"100"}'
>
{
({error, result, loading}) => {
if (loading) {
return <div>loading...</div>;
} else {
return <div>{ JSON.stringify(result) }</div>;
}
}
}
</Request> |
Unfortunately it seems to be a server problem. |
Thanks a lot @mbasso |
Thanks, you too :) 🎄 🎅 |
@hateCarrot Can I close this issue? |
I'm sorry I was late. Thank you for your great help. Close this issue. |
Hi.
This error occurs when using headers.
bundle.js:9485 Warning: Failed prop type: Invalid prop
headers
of typestring
supplied toRequest
, expectedobject
.and I used headers as shown below.
headers='{"Authorization":"ApiKey api_key=blah blah"}'
What is the problem?
Thanks.
The text was updated successfully, but these errors were encountered: