0108-filters-graphql-authentication-error-status-code


目录


title: graphql_authentication_error_status_code hookType: filter hookGroup: authentication plugin: wp-graphql

graphql_authentication_error_status_code

apply_filters( 'graphql_authentication_error_status_code', 403, $auth_error );

Filter the HTTP status code returned for authentication errors. By default, invalid nonce errors return 403 Forbidden. Some clients may expect 200 with a GraphQL error response instead.

Parameters

Source

apply_filters( 'graphql_authentication_error_status_code', 403, $auth_error );

版本号 #2
由 壳壳虫 创建于 2026-08-29 15:36:26 UTC
由 壳壳虫 更新于 2026-08-29 15:36:26 UTC