Added cross-origin-request middleware. Will need to split secure/insecure sections of sites soon