luckyframework / luckyframework/website

Document how to temp skip CSRF

Open
#893 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Crystal
Stars
39
Forks
62
PR merge metrics
No merged PRs in 30d

Description

You might need to do this for testing purposes.

You can do this in your spec.

Lucky::FormHelpers.temp_config(include_csrf_tag: false) do
  # write a spec that hits a form here
end

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the website's documentation section covering testing, forms, or CSRF. Add the provided Crystal example for Lucky::FormHelpers.temp_config and explain that it can be used in a spec to skip the CSRF tag temporarily; the documentation is done when the example is discoverable and renders correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.