Users needing to support IE should be polyfilling this.
FYI: for create-react-app users, a "import 'core-js/es7/array';" in your index.js should suffice as well.
Just leaving it here, unsure if this is something that should be fixed in the module or at least documented somewhere.
My application stopped running in IE when trying to implement this middleware.
Appears it uses the includes() method, which is not supported in IE: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
Users needing to support IE should be polyfilling this. FYI: for create-react-app users, a "import 'core-js/es7/array';" in your index.js should suffice as well.
Just leaving it here, unsure if this is something that should be fixed in the module or at least documented somewhere.