Respect http scheme when saving file URL

Created on 3 May 2024, about 1 year ago
Updated 14 June 2024, 11 months 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.71.5 2024