Re-create the HandlerMethod only after the original is used as a key in the CORS lookup map. Closes gh-34375