Skip to content

CDN: Improve Cross-Origin Resource Sharing (CORS) and cache headers #3931

@Daniel-H123

Description

@Daniel-H123

1. What is not working as documented?

I am currently facing an issue related to CORS while attempting to load fonts from a different CDN hostname, which is routed through Cloudflare. According to the documentation provided here, I expect the fonts to load successfully, but it seems there is a CORS-related problem preventing their loading.

2. How can we reproduce it?

Steps to reproduce the behavior:

  1. Use a different CDN hostname routed through Cloudflare.
  2. Attempt to load fonts from this CDN hostname.
  3. Observe the CORS-related blockage in DevTools, preventing successful font loading.

3. What behavior do you expect?

Successful loading of fonts with Access-Control-Allow-Origin header set to PHOTOPRISM_SITE_URL variable.

4. What could be the cause of your problem?

Access-Control-Allow-Origin header not set.

5. Can you provide us with example files for testing, error logs, or screenshots?

Screenshot 2023-12-03 015829

6. Which software versions do you use?

Latest release

7. On what kind of device is PhotoPrism installed?

Windows Server 2019, 32GB ram, I7 4790k

8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?

Yes, Synology reverse proxy, but tested without and headers are not present either.

Metadata

Metadata

Assignees

Labels

docs 📚Improvements or additions to documentationenhancementEnhancement or improvement of an existing featurereleasedAvailable in the stable releasesecurityImpact on server or browser securitytestedChanges have been tested successfully

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions