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

Prevent calls to getMe from embed #417

Merged
merged 3 commits into from
Jan 26, 2024
Merged

Conversation

allanlasser
Copy link
Member

A recent change removed the CSRF token check during the call to the getMe API handler. This led to increased unauthenticated calls to getMe from the embedded viewer. This reintroduces that check and should minimize unnecessary requests to the endpoint.

@allanlasser allanlasser force-pushed the fix/getMe-too-many-calls branch from 0161ef2 to cee4bf4 Compare January 26, 2024 16:29
Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for documentcloud-frontend ready!

Name Link
🔨 Latest commit 0161ef2
🔍 Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/65b3ddd558ee08000821c1cd
😎 Deploy Preview https://deploy-preview-417.muckcloud.com/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for documentcloud-frontend ready!

Name Link
🔨 Latest commit f8a976a
🔍 Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/65b3e3538cf43e000877689f
😎 Deploy Preview https://deploy-preview-417.muckcloud.com/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@allanlasser allanlasser force-pushed the fix/getMe-too-many-calls branch from cee4bf4 to 396b266 Compare January 26, 2024 16:33
Copy link

github-actions bot commented Jan 26, 2024

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements
2.26% (+0.02% 🔼)
1545/68370
🔴 Branches
2.58% (+0.03% 🔼)
760/29419
🔴 Functions
2.66% (+0.01% 🔼)
402/15118
🔴 Lines
2.26% (+0% 🔼)
1385/61167

Test suite run success

75 tests passing in 15 suites.

Report generated by 🧪jest coverage report action from f8a976a

@allanlasser allanlasser merged commit 84edb5e into master Jan 26, 2024
13 checks passed
@allanlasser allanlasser linked an issue Jan 26, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embeds hitting /api/users/me endpoint
2 participants