CORS IRULE for LTM

can anyone provide me CORS Irule to deploy it at f5 ltm, and it will be helpfull if he used it before

Its already shared in many articles and questions, the below would be a good place to start.

CORS implementation