I am working on a chrome extension that uses socket IO to communicate with a backend server. The problem is that my connection seems to be blocked by cross origin policies.
My server is running on localhost, bit the chrome extension that i am loading from local directory has some other "origin" header and thus my requests are blocked.
How can I allow a socket IO connection from local chrome extension ?
The request:
https://localhost:8000/socket.io/?EIO=3&transport=polling&t=LkNvOuH net::ERR_CONNECTION_CLOSED
The headers:
Provisional headers are shown
Accept:*/*
Origin:chrome-extension://acgnndapfmilgphkhkdkipfiipikkjki
Referer:https://docs.google.com/presentation
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36