Improve behavior of preflight requests

Makes the behavior consistent with w3c spec