Better handling of the OPTIONS requests + global headers