Is there a way to use the stage API for an app --- for example, a Vue App, and use fetch('https://community-stage.mysite.com/restapi/v1/messages/id/12345?restapi.response_format=json') without using authentication?
When I was building the app, I had no problem hitting this URL. But now I get an error response,
error: {code: 101, message: "No message with the specified uid."}
But the uid exists.
Unsure if something changed or if there's a secret back door to hit the API or ...?
I believe I was using a CORS workaround plugin but even that doesn't do it anymore.
Thanks
You can log support ticket to whitelist the IP from which you want to hit the stage url. Server IP which you share with the support will have the access to hit the API without htaccess
No, it can't be of localhost.
it should be of dedicated server.
Without authentication, you'll only be able to get public content. So if that message UID is in a private area that would otherwise require authentication, you won't be able to get it from the API without authentication.
Is stage considered a public area? I am still unable to hit the API and get results despite making it public.
Hi @IanAtJMP,
There's 2 things you could try in this situation:
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!