Report this

What is the reason for this report?

Connect Strapi with a Javascript frontend

Posted on March 8, 2022

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.



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!

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.

Hello,

I could suggest a couple of resources here:

Hope that this helps!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.