title: How to correctly implement a callback url on a Laravel/Vue/Inertia project
body: <p>I have this set up that makes an api call to a payment service provider, where the user is redirected to the provider's website to make payment and gets redirected back to my website after completion.</p>
  <p>I provided a callback url to the provider, which initiates the redirect back to my website and I can then use the parameter attached to the url to get the outcome of the api call.</p>
  <p>The callback is set up to hit a controller method.</p>
  <p>The problem I face is that this callback always returns a 'This site can't be reached'. See screenshot:<a href="https://i.stack.imgur.com/LB9j1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LB9j1.png" alt="Callback error image" /></a></p>
  <p>While trying to figure this out, I copied the callback url along with the data returned by the provider to a new browser window, and that hit my backend. I die and dump the request reference at my controller method and got the expected result. See screenshot: <a href="https://i.stack.imgur.com/U9Fi7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U9Fi7.png" alt="Expected behavior" /></a></p>
  <p>I'm at a loss as to why this is the case or what to do to resolve it.</p>