Modify argument order on wrap-cors middleware function

This in order to comply with ring standards

Suggested by @weavejester