Cors and target

Added cors and target functionality