<filename>src/mock-db/json-server-interceptor.js
module.exports = (_, res, next) => {
    res.setHeader("Access-Control-Allow-Origin", "*");
    res.setHeader(
        "Access-Control-Allow-Headers",
        "Origin, X-Requested-With, Content-Type, Accept"
    );
    res.setHeader("Access-Control-Expose-Headers", "X-Total-Count, Link");
    next();
};
