Bugfix : nil response header value (when unprovided HTTP_ORIGIN request header) + refactoring