CORS implementation
Problem this snippet solves: Pretty self-explanatory - we had to implement CORS (Cross-Origin-Resource-Sharing) where we had multiple domains, all of which had to be able to make AJAX calls to API's...
Published Nov 03, 2015
Version 1.0Rory_Hewitt_F5_
Cirrus
Joined May 05, 2019
Rory_Hewitt_F5_
Cirrus
Joined May 05, 2019
CharlesCS
Cirrus
Sep 07, 2022madel Go to Local Traffic ›› iRules : Data Group List and click the "Create" button at the far right side of the display. Name the data group "allowed_origins" and set the type to String in the drop-down box. Enter each domain or subdomain (e.g., ".mycompany.com" or ".other.company.org" without the quotes) in the String entry field and click the "Add" button -- there is no need to enter data in the Value entry field. Once you've completed entering data, click the Finished button.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)