Closed (fixed)
Project:
CDN
Version:
8.x-3.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2017 at 07:12 UTC
Updated:
26 Dec 2019 at 09:35 UTC
Jump to comment: Most recent
Versions
Drupal: 8.2.6
CDN: 8.x-3.0
Steps for reproduction
Try to edit an arbitrary file.
You may get errors like
"NetworkError: 403 Forbidden - https://s.example.com/cdn/farfuture/bVoDYzwMwjp3oL94u8doKIHU66BY8LLCh_wk..."
where example.com is domain served by cdn url specified above.
Comments
Comment #2
wim leersDoes this happen for all files? Or just for CKEditor language files?
Comment #3
wim leersReproduced. This only happens for CKEditor, when:
The CDN configuration:
You can fix it by either:
This is essentially the same problem as #2827638: "Forever cacheable files" enabled + "CSS aggregation" disabled via settings.local.php = files referenced from CSS files 403'ing => don't alter CSS file URLs in this case. The only solution is #2827998: Add a new default option to the CDN UI: "all files except CSS+JS", and make this the new default of the CDN module, include upgrade path.
Also note that if you want your CKEditor dialogs to work correctly, you'll need to choose anyway, due to a long-existing bug in Drupal core: #2811615: [upstream] [Core bug, fixed since 9.5] AJAX commands that need additional JS to be loaded will fail when JS is loaded from CDN.
Comment #5
wim leersFYI: a potential solution for this was posted at #3061110-11: Automatically prevent CKEditor from loading from the CDN when far future functionality is enabled.