add Access-Control-Allow-Origin to header of final resource