Skip to content

[v1.17.0] API cannot use _csrf token get information #20585

Closed
@tyroneyeh

Description

@tyroneyeh

Description

Show The target couldn't be found. or token is required
How use _csrf token to API get data?

API URL: /api/v1/repos/{username}/{reponame}/issues this API in mustEnableIssuesOrPulls function show The target couldn't be found.

API URL: /api/v1/notifications this API show token is required

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

systemd

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions