Comments (3)
My idea of the implementation was to generate the csrf token when a user visits the page. We don't expose the secret to the client, but the token that we need to implement csrf mitigation.
However, this might not be possible when doing SSG. So, I'm revisiting the implementation again and I have a PR ready to merge soon.
from next-csrf.
I'm revisiting the implementation again and I have a PR ready to merge soon.
@j0lv3r4 I see the PR is in Draft status. Is there someone we can do to help get it merged?
from next-csrf.
I tried with this PR, and it worked!
from next-csrf.
Related Issues (20)
- Header ‘xsrf-token’ is not allowed HOT 1
- "TypeError: Secret string must be provided." HOT 21
- Env variable cant load on browser HOT 3
- How to protect api routes on first request? HOT 1
- Explain in the documentation why exposing an API route to set up the CSRF token is a bad idea
- Explain in the documentation when you need CSRF mitigation. Not every project needs it
- Highlight the preferred way to use `next-csrf`, with the API route's alternative
- Broken middleware HOT 3
- Parse method always returns an object HOT 1
- Do I use correctly next-csrf ?? HOT 5
- "Signed cookie string must be provided." with multiple cookies HOT 2
- how to use in API endpoint HOT 15
- Internal server error HOT 2
- Pass context back to GetServerProps handler HOT 4
- The implementation probably defeats the purpose of CSRF protection HOT 3
- Issues on live server
- Keep original args of handler so we have access to the context HOT 4
- Failed to read secret cookie in setup function
- Next.js v13 HOT 1
- Missing HttpOnly Cookies with setup() Wrapper Usage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-csrf.