[GH-ISSUE #3623] [bug]: 403 auth/cookies_not_found reject if not provided on REST API / GraphQL calls #1254

Closed
opened 2026-03-16 19:30:21 +03:00 by kerem · 3 comments
Owner

Originally created by @Leon-Luu on GitHub (Dec 5, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3623

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When perform the GraphQL query, it is asking to have the cookie in the header. How can we bypass the cookie? We have generated the Access_token and provide this to the header (or Authorization) which should be enough for the normal REST / GraphQL call..

Steps to reproduce

  1. Get the Access_token to https://login.microsoftonline.com/${{TENANT_ID}}/oauth2/v2.0/token
  2. Perform a GraphQL API request with Postman/Curl to our self hosted: https://hpsapi.test.com/graphql
    with headers:
    Authorization : Bearer ${{Access_token }}

Body (GraphQL query):

query Me {
me {
uid
displayName
email
photoURL
isAdmin
createdOn
currentRESTSession
currentGQLSession
}
}

Response:
{
"errors": [
{
"message": "auth/cookies_not_found",
"extensions": {
"code": "FORBIDDEN",
"response": {
"statusCode": 403,
"message": "auth/cookies_not_found",
"error": "Forbidden"
}
}
}
],
"data": null
}

Environment

Production

Version

Self-hosted

Originally created by @Leon-Luu on GitHub (Dec 5, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3623 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When perform the GraphQL query, it is asking to have the cookie in the header. How can we bypass the cookie? We have generated the Access_token and provide this to the header (or Authorization) which should be enough for the normal REST / GraphQL call.. ### Steps to reproduce 1) Get the Access_token to https://login.microsoftonline.com/${{TENANT_ID}}/oauth2/v2.0/token 2) Perform a GraphQL API request with Postman/Curl to our self hosted: https://hpsapi.test.com/graphql with headers: Authorization : Bearer ${{Access_token }} Body (GraphQL query): query Me { me { uid displayName email photoURL isAdmin createdOn currentRESTSession currentGQLSession } } Response: { "errors": [ { "message": "auth/cookies_not_found", "extensions": { "code": "FORBIDDEN", "response": { "statusCode": 403, "message": "auth/cookies_not_found", "error": "Forbidden" } } } ], "data": null } ### Environment Production ### Version Self-hosted
kerem 2026-03-16 19:30:21 +03:00
Author
Owner

@pravindodia commented on GitHub (Feb 22, 2024):

+1

<!-- gh-comment-id:1959841384 --> @pravindodia commented on GitHub (Feb 22, 2024): +1
Author
Owner

@Think-Jay commented on GitHub (Mar 1, 2024):

use https is ok

<!-- gh-comment-id:1972904774 --> @Think-Jay commented on GitHub (Mar 1, 2024): use https is ok
Author
Owner

@Think-Jay commented on GitHub (Mar 1, 2024):

https://github.com/hoppscotch/hoppscotch/issues/3394

<!-- gh-comment-id:1972905177 --> @Think-Jay commented on GitHub (Mar 1, 2024): https://github.com/hoppscotch/hoppscotch/issues/3394
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1254
No description provided.