How to use WebShareAPI preceded by an AJAX call in Safari?
问题 When users click the share button on our paywalled site, we generate a token via an async call that allows the people clicking on the share link to bypass the paywall. I've added support for Web Share API first calling the token before triggering navigator.share - along these lines: fetchCallForLink() .then((url) => { navigator.share({ title: 'Test Title', url, }); This is working fine on Chrome / Android which supports Web Share. However on Safari, I am getting a not allowed error. The