-
I have a plugin where I need to do an API call in JavaScript. Locally in Python, it runs just fine, but within the plugin, I always get a 403 Forbidden with the response: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed it by parsing the |
Beta Was this translation helpful? Give feedback.
Fixed it by parsing the
csrf
from the jinja template to the js fetch function header ("X-CSRFToken": csrf
). The Authorization Token is also not needed if you parse the csrf Token.