Using OIDC all HTTP POST calls result in error 403 (CSRF verification failed. Request aborted.)

I’ve setup OIDC on our K8S cluster using a Keycloak client which is going through a reverse proxy (NGINX). I did need to use the following override in the settings seeing as Mayan is calling Keycloak using http:

SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

The issue I’m having is that when doing a http post call within the GUI when doing a create tag of create new document for instance, I’m getting an http error 403:

All the http get calls are working as expected so retrieving docs or tags the issue is not seen.

I’ve tried the adding the following params to no avail:
CSRF_TRUSTED_ORIGINS
USE_X_FORWARDED_HOST = True

Is this a bug in the code or am I missing something? Any help is much appreciated.