Strapi is an open-source Node.js headless CMS built on top of Koa. It's frontend-agnostic and claims to not be an MVC framework. It auto-generate RESTful endpoints and has support for GraphQL and WebSockets.
Questions tagged [strapi]
2734 questions
50
votes
6 answers
Strapi API calling error: {"statusCode":403,"error":"Forbidden","message":"Forbidden"}
I am working with strapi and i am getting an error 403 Forbidden on calling an api e.g http://localhost:1337/data
I've called all the APIs and the result is same 403 error
I've tried it with postman also.
In the api route.js file i have this:
{
…

user3699398
- 501
- 1
- 5
- 4
28
votes
9 answers
Components not included in Strapi api response
I decided today that I'm going to use Strapi as my headless CMS for my portfolio, I've bumped into some issues though, which I just seem to not be able to find a solution to online. Maybe I'm just too clueless to actually find the real issue.
I have…

Sandmountain
- 447
- 1
- 5
- 13
22
votes
6 answers
How do I solve "Middleware "strapi::session": App keys are required" error in my deployment of Strapi to Heroku?
I'm following the official instructions to deploy my strapi starter app to Heroku. The app runs fine locally. The only thing I left out in my deployment instructions were installing the PG node module (it is already installed because my local app…

J7stin
- 491
- 1
- 4
- 12
18
votes
10 answers
How to change logo of strapi on admin panel left menu?
I am running the strapi project and need to change strapi login screen logo. I have replaced logo in plugins > user-permissions > admin > src > assets > images > logo_strapi.png and running the command npm run setup --plugins but after that it's not…

Varis Bhalala
- 191
- 1
- 1
- 4
16
votes
6 answers
strapi FetchError: request to http://localhost:1337/api/events failed, reason: connect ECONNREFUSED ::1:1337
If I use my browser to access localhost:1337/api/events as a PUBLIC (Unauthenticated user) I get the following returned:
{"data":[{"id":1,"attributes":{"name":"Throwback Thursday with DJ Manny…

preston
- 3,721
- 6
- 46
- 78
16
votes
1 answer
Strapi dynamic zone - display image in Gatsby
I am using Strapi with Gatsby and having difficulty rendering images within a dynamic zone. I am using:
Strapi 3.6.2
Gatsby 3.5.1
gatsby-source-strapi 1.0.0
gatsby-plugin-image 1.5.0
gatsby-plugin-sharp 3.5.0
gatsby-transformer-sharp 3.5.0
Top…

Kiee
- 10,661
- 8
- 31
- 56
15
votes
3 answers
Error: Must use import to load ES Module: D:\node_modules\react-markdown\index.js require() of ES modules is not supported
Currently I'm using "react": "17.0.2" and I have installed "react-markdown": "^7.0.1" via npm i react-markdown I'm using this package to display my rich text that I'm fetching from my Strapi CMS. I have used the following code to display the…

Jay Modi
- 569
- 7
- 24
15
votes
4 answers
Is there a way to backup/export & import Strapi data
So I am at the place where I lost all of my Strapi data after moving from local to remote host and deploying my Strapi through herokuapp.com
I am using Strapi in my personal NEXT.JS project.
Luckily my Strapi database wasn't so huge and all…

Adam Schwarcz
- 437
- 1
- 4
- 14
15
votes
5 answers
Deploying Strapi in Vercel
I have a nextjs app deployed to Vercel, and am trying to deploy the Strapi cms that manages it to Vercel too, as it would be easier to maintain both on the same service.
The Strapi repo builds fine, and everything is green, but I either see a 404 if…

user1003572
- 151
- 1
- 1
- 4
14
votes
9 answers
"Error: Unknown dialect undefined" when deploying Strapi 4.0 app to Heroku
I created a Strapi app using the latest version, the new 4.0 and I wanted to deploy it to Heroku. I did follow the Strapi documentation in order to do so, like explained in this page. Now I'm getting an error that I don't understand, I guess it has…

Essay97
- 648
- 1
- 9
- 24
14
votes
2 answers
what is difference between strapi content type and component?
I'm new user of strapi. While reading docs I got confused between content type and component.What is the difference between these two?

Tushar Manohar
- 153
- 1
- 5
14
votes
4 answers
How can I define and use a UUID field?
I need a UUID field in a content type, with the help of the introduction below I have modified the file "MyType.settings.json".
https://strapi.io/documentation/3.x.x/guides/models.html#define-the-attributes
"uid": {
"default": "",
"type":…

Benjamin Reeves
- 553
- 3
- 6
- 19
13
votes
10 answers
Strapi: Warning an error occurred while requesting the API
I've been struggling for hours trying to install Strapi on my Ubuntu server.
Ubuntu: 20.04
nodejs: v14.19.0
npm: 6.14.16
strapi: 4
npx create-strapi-app@latest my-project --quickinstall
All the installation process goes seamlessly but when…

Duddy67
- 836
- 2
- 10
- 26
13
votes
3 answers
How to POST relation in Strapi
I'm trying to do a POST to the Strapi API and can't seem to figure out how to attach a 'has and belongs to many' (many to many) relationship.
I've already tried the following body's:
events: ["ID", "ID"]
name: "name"
&
events: [ID, ID]
name:…

Max B
- 213
- 2
- 3
- 12
13
votes
1 answer
Adding strapi to an express server
I want to build a self-hosted website with nodejs and the express framework because I'm already familar with that. However, using a CMS for this project is a requirement, so I'm looking for a suited and easy-to-use/-learn CMS and discovered strapi…

Lorion
- 310
- 2
- 10