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
Frederic_d_HUA1
Sep 25, 2020Nimbostratus
You should create a data group called "allowed_origins" type string and add the list of your domains to it. You can then make a call to this data group from an iRule.