Update index.js

swagger-ui makes an options request in CORS situations