Added main.js to send a CORS request