NoteGio / openrelay

OpenRelay is an open source relay for the 0x protocol. OpenRelay provides an open, scalable orderbook. Users can post offers for any ERC20 or ERC721 token, or search for trades with other users
Other
159 stars 56 forks source link

Update cors library #135

Closed AusIV closed 5 years ago

AusIV commented 5 years ago

The cors library we're using used to inject:

"Access-Control-Allow-Origin: $REQUEST.ORIGIN"

Which would in turn get cached in CloudFront, preventing people on other origins from requesting the same resources.

The library has switched from responding with $REQUEST.ORIGIN to responding with "*" for other security reasons, so this should resolve our issues.