I would like to unblock cors in all requests that occurs in www.example.com via xhr for example in it i request to www.google.com how can i add response headers for it like Access-Control-Allow-Origin: www.example.com
var corsorg = { name: "Access-Control-Allow-Origin", value: "https://www.example.com" }; var corstrue = { name: "Access-Control-Allow-Credentials", value: "true" }; e.responseHeaders.push(corsorg); e.responseHeaders.push(corstrue); console.log(e); }, {urls: ["<all_urls>"]}, ["blocking", "responseHeaders"] );
1.4m articles
1.4m replys
5 comments
57.0k users