Connect Strapi with a Javascript frontend

I’ve created a website (vanilla JS/CSS/HTML) which uses Strapi as a backend. It works fine on my localhost. But I cannot get it to work on the DO platform. I’ve uploaded both of them as apps, but I can’t get my static website to talk to / access the Strapi backend.

The two apps work independently; I can log into Strapi and create/modify data and I can visit my website and see the various pages (but no data) so they’re working, but not communicating with each other.

I’ve gone through the relevant tutorials but can’t see what I’m doing wrong. Any and all help greatly appreciated - if someone has done this before, please point me to them. Note this is not React or Vue - it’s just plain old vanilla Javascript.

Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 26, 2022


I could suggest a couple of resources here:

Hope that this helps!