Implemented preflight requests