Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CORS - When to return `Access-Control-Expose-Headers`

Tags:

rest

http

cors

Should the Access-Control-Expose-Headers header field be returned along with an entity in response to an 'actual' request?

Or should it only be returned in response to a CORS preflight request?

Or both?

like image 400
Luke Puplett Avatar asked Feb 08 '16 14:02

Luke Puplett


1 Answers

The flowchart is such a good resource I wanted to repost it here in my own answer.

Image from: http://www.html5rocks.com/en/tutorials/cors/#toc-cors-server-flowchart

CORS flowchart

like image 157
Luke Puplett Avatar answered Oct 06 '22 22:10

Luke Puplett