Authenticating requests from iframe content back to the add-on for Spring boot apps

Hello,
I am trying to apply the section " Authenticating requests from iframe content back to the add-on" mentioned in this link, but I am facing an issue to apply it on my app, I always get 401 unauthorized response,
So, I am asking if there is someone who have tried it before so can share spring part, because it’s not mentioned in the article,
waiting for you reply,
Many thx,

Hi @AliSalem,

You need to annotate your controller itself or the just the method with @com.atlassian.connect.spring.ContextJwt to support requests from the iframe back to your backend.

Cheers,
Mark

2 Likes

Hi @markrekveld
the solution worked,
thank you for your help,
kind regards,
Ali

1 Like