cors
cors copied to clipboard
Not setting headers on Koa2 / Node 6.2
The headers don't seem to be getting set on the latest version of Koa 2 with node 6.2. Any ideas?
same issue here
can you give a simple code(server and client) to reproduce the issue?
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'
This is still an issue, still waiting on the PR to be merged
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.
This is still an issue, still waiting on the PR to be merged
I just opened a PR. Hope it is still in time :)