Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested CSS Import URLs Not Presigned in S3 Storage Backend #1477

Open
BlueMagma2 opened this issue Dec 17, 2024 · 0 comments
Open

Nested CSS Import URLs Not Presigned in S3 Storage Backend #1477

BlueMagma2 opened this issue Dec 17, 2024 · 0 comments

Comments

@BlueMagma2
Copy link

BlueMagma2 commented Dec 17, 2024

Bug: Nested CSS Import URLs Not Presigned in S3 Storage Backend

Environment

  • Django version: 4.2.16
  • django-storages version: 1.14.3
  • Python version: 3.11
  • Backend: S3Storage

Description

When using the S3Storage backend, nested CSS import URLs (like @import url('widgets.css')) are not presigned, causing 403 Forbidden errors when loading static files from the Django admin interface.

Reproducible Example

  1. Use Django admin static files
  2. Load a CSS file with a relative @import statement
  3. Observe that the imported CSS file fails to load without a presigned URL

Additional Context

  • Direct static file URLs work correctly
  • Presigning works for other file types
  • Issue specifically affects nested/imported CSS files
@BlueMagma2 BlueMagma2 changed the title Relative CSS Import URLs Not Presigned in S3 Storage Backend Nested CSS Import URLs Not Presigned in S3 Storage Backend Dec 17, 2024
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

No branches or pull requests

1 participant