- From: 芝麻飞来 <notifications@github.com>
- Date: Fri, 24 Feb 2017 23:01:33 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 25 February 2017 07:06:37 UTC
my solution: ``` app.use(function(request, response, next) { response.header("Access-Control-Allow-Origin", request.headers.origin); response.header("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); response.header("Access-Control-Allow-Methods", "GET,HEAD,POST,PUT,DELETE,OPTIONS"); response.header("Access-Control-Allow-Credentials", "true"); next(); }); ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/252#issuecomment-282465802
Received on Saturday, 25 February 2017 07:06:37 UTC