System Information
- Strapi Version: 3.6.3
- Operating System: Ubuntu 20
- Database: local (sqlite)
- Node Version: 14.17.1
- NPM Version: 6.14.13
Hello Community,
I’ve got stuck with the passing HTML in response.
I have totally 3 apps.
- Strapi - https://my-api.com
- React App - https://my-react-app.com
- Third-Party app - https://other-app.com
GET https://my-api.com/api/get-form
The above URL request is sent by the Third Party app to my strapi server and I have to return an html.
/api/*/controller/fileName.js
const { data } = await axios.get('https://my-react-app.com/form-page');
ctx.send(data);
I have done this above method and it got worked out but it is not rendering Html in the UI.
If you notice from the screenshot, the <div id="main"></div>
is empty.
.
Can you please help me to find a solution…
if you didn’t understand anything from the question please ask me.
Thank you.