Skip to content

Conversation

giusebar
Copy link
Contributor

Add environment variable for CSRF trusted origins to Pebble layer for Django service.

this ensures Django admin POST requests work correctly over HTTPS.

The variable in django database is introduced in canonical/cos-registration-server#66

@Guillaumebeuzeboc
Copy link
Collaborator

Before merging, can you test that this still works when no https is enabled?

@giusebar
Copy link
Contributor Author

Before merging, can you test that this still works when no https is enabled?

Tested and working fine.

@giusebar giusebar merged commit 5063b83 into main Aug 29, 2025
14 checks passed
@giusebar giusebar deleted the fix/include-csrf-trusted-origins branch August 29, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants