[Apiman-user] APIMan return error 400 for header Access-Control-Request-Method

Renato Barros renalexster at gmail.com
Tue Dec 18 07:58:50 EST 2018


Hello Marc,

I don't think the problem is associated with *Access-Control-Allow-Origin*.
Below there are two requests using Restlet Client, the first one works
without the *Header Access-Controle-Request-Method*, the second only adding
this Header gets fail.


[image: image.png]

On Tue, 18 Dec 2018 at 09:40, Marc Savy <marc.savy at redhat.com> wrote:

> I think your issue might be the way that you're formulating your request.
>
> In order to issue a valid CORS request, you must set your origin header.
> You should probably try that first.
>
> https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
>
> e.g. curl ... -H "Origin: mymachine.local"
>
> When using a browser, this is usually issued on your behalf. But, if
> you're using curl, it won't be.
>
>
> On Tue, 18 Dec 2018 at 12:35, Renato Barros <renalexster at gmail.com> wrote:
>
>> Hi Marc,
>>
>> I've just updated the image with details. The Access-Control-Allow-Origin
>> already had "*" as value.
>>
>> [image: image.png]
>>
>> On Tue, 18 Dec 2018 at 05:50, Marc Savy <marc.savy at redhat.com> wrote:
>>
>>> I'm not sure why your browser isn't rendering it, but there should be a
>>> list in the Access-Control-Allow-Origin section that would allow you to add
>>> an entry such as "*" or "foo.com".
>>>
>>> What is your setup?
>>>
>>> On Mon, 17 Dec 2018 at 19:10, Renato Barros <renalexster at gmail.com>
>>> wrote:
>>>
>>>> Hello all,
>>>>
>>>> I'm getting an error with *Access-Control-Request-Method* Header in my
>>>> APIs.
>>>>
>>>> I posted details in StackOverflow
>>>> <https://stackoverflow.com/questions/53821510/apiman-return-error-400-for-header-access-control-request-method>
>>>> .
>>>>
>>>> Please, someone could help me?
>>>> _______________________________________________
>>>> Apiman-user mailing list
>>>> Apiman-user at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/apiman-user
>>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20181218/f41c7d5b/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 204857 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/apiman-user/attachments/20181218/f41c7d5b/attachment-0001.png 


More information about the Apiman-user mailing list