function csrfSafeMethod(method) {
	return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
}
Used to get see if a http request is one of: GET, HEAD, OPTIONS, TRACE.
@param {string} method - the method to be checked.
@returns {boolean} if the http request is one of GET, HEAD, OPTIONS, TRACE or not.