Unable to run react example

Hi, I’m setting up bloomreach and try executing client-side-renderer example. Have cleared CORS issue, now it says “GET http://localhost:8080/site/resourceapi 404”. resource api is 404, tried directly in browser url, it is 404.

Error! Status code 404 while fetching CMS page data for URL: http://localhost:8080/site/resourceapi

Kindly help.

you should add the necessary property on the mount. It is mentioned here: https://documentation.bloomreach.com/library/concepts/spa-plus/configuration.html

Thank you @bcanvural, adding hst:pagemodelapi = resourceapi
property resolved this.