Add fromHeader attribute for REST interface, and handles it server side
Handle fromHeader client-side