Added preflight OPTIONS middleware