Could you give me some advice on how to fix the error:
I created a Sling Model with an exporter and I'm trying to get JSON on request from the ReactJS App.
I also created a filter for the set headers for CORS:
If I make a request from the browser, I will get JSON but not from ReactApp.
And configuration from AEM:
I use AEM 6.4 version.
Could you please tell how to solve this problem.
Thanks in advance for any advice.
Have you tried configuring the "Apache Sling Referrer Filter OSGI configuration"?
Documentation here: https://sourcedcode.com/in-aem-what-is-the-apache-sling-referrer-filter-osgi-configuration
@aliaksandr_hvoz Please go through this link https://blogs.perficient.com/2019/09/17/creating-your-first-custom-aem-component-using-react-part-1/
I hope this will help you to resolve your query.