Skip to content

Always trying new things, so I installed the …

Always trying new things, so I installed the “WPGraphQL JWT Authentication” plugin for WordPress, and it somehow seems to strip Location headers off WordPress’s JSON API responses. Found out because my slightly convoluted IndieAuth setup stopped working.

Replies

  1. Jan Boddez Jan Boddez on

    Possible culprit: https://github.com/wp-graphql/wp-graphql-jwt-authentication/blob/6f4c18ada3382f51c8aa690aaec3bad994af13f3/src/ManageTokens.php#L345. The $response->setHeaders() call is missing the optional second argument ($override, which defaults to true).

    Via jan.boddez.net, in reply to Always trying new things, so I installed the ….