Corrected swapping of link types and reversed list
Added CORS support