Hi Dev,

CORS specification allows caching the preflight response for a certain
number of seconds through Access-Control-Max-Age header [1] .

Some browsers have this feature by default which overrides this header if
the value specified is greater than their value[2]

Firefox - 24 hours
Chrome - 10 minutes
Chromium - 5 seconds

Mathieu(https://github.com/mathieu-pousse) has sent a PR though [3]. Please
review and provide feedback.


[1] : https://www.w3.org/TR/cors/#access-control-max-age-response-header
[2] :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
[3] : https://github.com/wso2/carbon-apimgt/pull/3114


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to