You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we could define custom headers that browsers are allowed to access in config/cors.js
It's all about Access-Control-Expose-Headers.
I forked and added very basic implementation.
If you want I can make PR.
config/cors.js looks now
module.exports.cors={// Stripped code for readability/*************************************************************************** * * * Which headers should be allowed for CORS requests? This is only used in * * response to preflight requests. * * * ***************************************************************************/headers: 'content-type, Total-Count',/*************************************************************************** * * * Which headers in CORS response should be allowed for borwser? This is * * only used in response to preflight requests. * * * ***************************************************************************/exposeHeaders: 'Total-Count'};
It would be great if we could define custom headers that browsers are allowed to access in config/cors.js
It's all about
Access-Control-Expose-Headers
.I forked and added very basic implementation.
If you want I can make PR.
config/cors.js looks now
My solution: hinok@81ed85e
@gaprl mentioned that earlier: #2146
The text was updated successfully, but these errors were encountered: