Skip to content

Corrects CORS setup to allow login cookie to be set#11

Open
StuTheWebGuy wants to merge 75 commits into
mainfrom
fix-login-cookies
Open

Corrects CORS setup to allow login cookie to be set#11
StuTheWebGuy wants to merge 75 commits into
mainfrom
fix-login-cookies

Conversation

@StuTheWebGuy
Copy link
Copy Markdown
Collaborator

The PHPSESSID cookie on login wasn't being set, in part because the CORS setup was incorrect. This PR amends the CORS config on the API to fix this.

The other fix that needs doing (outside the scope of this PR) is to ensure all fetch() calls in the frontend use a base URL that matches the CORS origin, and that the fetch options include credentials: 'include'.

Casjb added 30 commits November 4, 2025 13:59
# Conflicts:
#	api/config/web.php
#	api/controllers/BoxesController.php
#	api/controllers/CategoriesController.php
#	api/controllers/PokemonSpeciesController.php
#	api/controllers/SiteController.php
#	api/controllers/TeamsController.php
#	api/models/Category.php
#	api/rest/ActiveController.php
#	api/rest/Controller.php
added 'loginUrl' => null
to web.php
Casjb and others added 27 commits November 17, 2025 11:09
@StuTheWebGuy StuTheWebGuy requested a review from Casjb November 24, 2025 10:12
@StuTheWebGuy StuTheWebGuy self-assigned this Nov 24, 2025
Base automatically changed from setting-up-frontend-wireframe to main March 26, 2026 16:31
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.

2 participants