Question

Digital Ocean's APP Platform blocking XMLHttpRequest from Inertia.js

Hello, I’ve created a fresh Laravel Jetstream with Inertia app from the command “laravel new name --jet --stack=inertia” and threw this on Digital Ocean’s APP Platform, I’ve already tested this app different environments like locally, and a Ubuntu server running Apache or Nginx, it works perfectly, but Digital Ocean’s APP Platform is blocking the xhr (XMLHttpRequest) from Inertia.js You can see the issue in this link (https://funnysoft-wn9y2.ondigitalocean.app/), check your dev tool’s console.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The issue is related to ziggy’s @routes directive in app.blade.php file, because it returns http endpoints instead of https endpoints. Following the issue here: https://github.com/tighten/ziggy/issues/542