常见跨域问题及处理方式

          const sendBeacon = (event) => {
            const headers = {
              type: 'application/x-www-form-urlencoded',
            }
            const blob = new Blob([JSON.stringify(event)], headers);
            navigator.sendBeacon(`url, blob)
          };

跨域踩坑经验谈

这里

results matching ""

    No results matching ""