node.js - Origin header in Chrome Extension -
i have api running on node js, security reasons, have set middle ware function check origin header, if website, api should go ahead. finding issues chrome extension, not pass origin header in requests, in put requests, sends chrome:// origin header. can help?
regards, manik mittal
well, that's how chrome sets origin
extensions. it's not simple override.
it is, however, possible override. you'll need use webrequest
api, blocking response onbeforesendheaders
, rewrite origin whatever like.
Comments
Post a Comment