Not setting headers on Koa2 / Node 6.2
Closed this issue · 6 comments
KingScooty commented
The headers don't seem to be getting set on the latest version of Koa 2 with node 6.2. Any ideas?
tsvetann commented
same issue here
dead-horse commented
can you give a simple code(server and client) to reproduce the issue?
tsvetann commented
Using koa2!
On server:
const cors = require('kcors')
app.use(convert(cors()))
On Client (origin different than server):
make ajax request with content-type: 'application/json'
jakewmeyer commented
This is still an issue, still waiting on the PR to be merged
garretttaco commented
Still seeing this as an issue as well. The PR above does not seem to fix it, however. As referenced in the PR, it is setting the allowed origin to the origin of the responding server.
CleberRossi commented
This is still an issue, still waiting on the PR to be merged
I just opened a PR. Hope it is still in time :)