AdoptOpenJDK / openjdk-api

DEPRECATED and replaced by of https://github.com/AdoptOpenJDK/openjdk-api-v3 - See README
https://api.adoptopenjdk.net/README
Apache License 2.0
15 stars 15 forks source link

Replace manual CORS header with middleware library #180

Closed ParkerM closed 5 years ago

ParkerM commented 5 years ago

This PR replaces the baked-in Access-Control-Allow-Origin: * header with a CORS middleware that can handle more complex negotiation stuff (if requested by a client) without affecting the existing behavior of API responses. Hopefully this can provide better feedback to users experiencing the issue described in #146.

This PR also updates express to the latest minor version and removes an unused dependency declaration on the async library.

karianna commented 5 years ago

@johnoliver You'll probably want to pull this into your v3 repo