CORS policy notice when using CKeditor 5

Created on 10 February 2023, over 1 year ago

Problem/Motivation

When using this module and CKeditor5 you get the following notice in your browser console when ckeditor is opened when you edit something:
ckeditor5.js?rpuymr:112 Stylesheet https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap not included in CKEditor reset due to the browser's CORS policy.

Proposed resolution

Add crossorigin: anonymous to the offcanvas-font library.
Change:
//fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap: { type: external, minified: true }
Into:
//fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap: { type: external, minified: true, attributes: { crossorigin: anonymous }}

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium flyke

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

Comments & Activities

Production build 0.69.0 2024