• Resolved vaniivan

    (@vaniivan)


    Ajax requests to an API on another subdomain fail, any way to stop servicing them through serviceWorker?

    • This topic was modified 2 years ago by vaniivan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Yes, a service worker’s fetch event will trigger for that external domain, allowing you to intercept it with a custom response.

    Nevertheless, there may be alternatives like wrapping the fetch function or, if jQuery is involved, using Ajax events.

    Thread Starter vaniivan

    (@vaniivan)

    Sorry, just found API logs pointing to an issue with client’s Google account.
    Also, I forgot about two SW entries in the Chrome network log, I was looking at the wrong one.
    I apologize for taking your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ajax requests to an API on external domain fail’ is closed to new replies.