Move writer proxy to a separate file
Automatic OPTIONS middleware