payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
24.76k stars 1.57k forks source link

[3.0.0-beta.32] Issue with Payload on an existing nextjs app while changing its admin and api paths #6402

Closed ydemetriades closed 4 months ago

ydemetriades commented 5 months ago

Link to reproduction

No response

Describe the Bug

Title

[3.0.0-beta.32] Issue with Payload on an existing Next.js app while changing its admin and api paths

Environment:

Issue Description: I am integrating Payload CMS into an existing Next.js application that uses TurboRepo and includes multiple local packages. I've modified the admin and API paths for Payload to /center/admin and /center/api respectively. Despite these changes, I'm facing issues with user authentication, receiving 401 Unauthorized errors.

Configuration:

Current Behavior:

Additional Information:

Possible Causes:

To Reproduce

I haven't been able to reproduce it with another existing app yet

Payload Version

3.0.0-beta.32

Adapters and Plugins

db-mongodb

ydemetriades commented 4 months ago

I am closing this issue as I have resolved it. It was a CSRF misconfiguration.

github-actions[bot] commented 1 month ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.