tao-response.js (327B)
1 const tao_response = (tao_value, base_url) => { 2 const payload = { 3 'headers': { 4 'Timing-Allow-Origin': tao_value 5 } 6 }; 7 return custom_cors_response(payload, base_url); 8 }; 9 10 const remote_tao_response = tao_value => { 11 const {REMOTE_ORIGIN} = get_host_info(); 12 return tao_response(tao_value, REMOTE_ORIGIN); 13 };