How can I stop redirects to login when sending requests in an embedded app?

We are creating an embedded application
I want to send a request from the theme to the REST API created in the embedded app, but when I send a request to /post, it redirects to /login.
If anyone knows how to fix this, please let me know.

API settings solved the problem.

1 Like