Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowed cookies does not work #319

Closed
ChamXE opened this issue Dec 9, 2022 · 3 comments
Closed

Allowed cookies does not work #319

ChamXE opened this issue Dec 9, 2022 · 3 comments

Comments

@ChamXE
Copy link

ChamXE commented Dec 9, 2022

I am using JSON API (Ver: 1.3.2) with Express.js to request data from the backend, the grafana_session cookie is needed for some processing. However, when using Grafana version 9.2.6, the allowed cookies are not included in the request.

I have used cookieParser so it shouldn't be an issue with my backend.
After testing, I figured out that from Grafana 9.1.8 until the latest version (9.3.1 for now), the allowed cookies function does not work.
Also tested with older versions (1.2.1, 1.3.0) of this plugin, it doesn't work either.

Below is an image of me printing out the cookies in the request, which you can see is null.

image

@GuYounes
Copy link

GuYounes commented Feb 24, 2023

@ChamXE, I just looked into grafana's source code, and they remove the possibility to pass the grafana_session cookie.

@rvangsgaard
Copy link

I was looking into this, and I can confirm that possibility to pass the grafana_session cookie was removed here grafana/grafana@4539c33

@gabor
Copy link
Contributor

gabor commented May 24, 2024

hi @ChamXE as others explained, this is not possible anymore, for security reasons.

@gabor gabor closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
Development

No branches or pull requests

4 participants