Added cors and HTTPS, fixed retrieved