F5 irule to resolve a Cors Issue

Hello all,

my web application need to allow user to call a third party API. However browser will complain the CORS issue.

I am thinking to use F5 irule to handle this issue.

For example: My site URL is I am planning to create a new URL as api.mycompany.com to allow the user to make API call as api.mycompany.com/api/lookup

I want to use irule redirect the traffic to and return the data to my end user.

Is that possible to be handled by F5 irule? Thanks.

How did you get this done eventually?