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
Rory_Hewitt_F5_
Apr 17, 2018Cirrus
Code snippet updated to include additional square brackets in the
class match
statement, as per the comment from @DrLemongelo.