api-console icon indicating copy to clipboard operation
api-console copied to clipboard

Response headers don't appear

Open pacohernandezg opened this issue 11 years ago • 1 comments

Hello.

I think there is a bug showing response headers.

I have the following definition: /user:   options:     responses:       200:         headers:           Allow:             description: Allowed methods             type: string

If I invoke the options verb on the resource with Postman, the response headers appear (Allow and CORS related ones):

screen shot 2015-03-09 at 10 57 12

But if I invoke the same verb on the resource with RAML API-Console, the response headers do not appear.

screen shot 2015-03-09 at 10 57 03

Thank you very much.

Best regards, Paco Hernández.

pacohernandezg avatar Mar 09 '15 10:03 pacohernandezg

@pacohernandezg It looks like this making CORS requests to your local API? With CORS, the headers aren't exposed to the browser by default. Your server will need to send back a Access-Control-Expose-Headers header. Postman works because they have a higher level API access in the browser (it's a plugin) than a normal web page.

blakeembrey avatar Mar 09 '15 12:03 blakeembrey