Hello, 

Can someone please help me understand how to enable CORS in the generated 
NodeJS server that can be downloaded from the Swagger editor? I have tried 
editing index.js and using expressjs with the following: 

  var express = require('express')
  var cors = require('cors')
  app.use(cors()

But that doesn't seem to be working. Any direction that you can provide 
would be greatly appreciated. 

Thank you, 

B

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to