I want to create an online offline website. I make a middleware to intercept response from server and add needed header. I only have a problem with CORS when trying to send