Respect http scheme when saving file URL

Created on 3 May 2024, 2 months ago
Updated 14 June 2024, 18 days ago

Problem/Motivation

When I upload a lottie file in a production environment with SSL I get a CORS error because the stored URL does not contain the correct scheme (HTTPS). Example: http://xxx/sites/default/files/lottiefile_field/loading.json

Steps to reproduce

In a HTTPS domain, Install module, upload JSON file, edit media and view that URL does not contain HTTPS

Proposed resolution

Store correct scheme

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain lluisandreu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024