Cloudfront CDN の CORS 問題を修正するにはどうすればよいですか?

Cloudfront CDN の CORS 問題を修正するにはどうすればよいですか?

私は WordPress ウェブサイトを運営しており、最近 CloudFront を使用して CDN を設定しました。

ほとんどの機能は正常に動作していますが、Github からロードしている JS ファイルで CORS の問題が発生しています。

この問題を解決するためにさまざまな方法を試しましたが、それでも次のエラーが発生します。

Ensure CORS response header values are valid

A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated preflight request .

To fix this issue, ensure the response to the CORS request and/or the associated preflight request are not missing headers and use valid header values.

Note that if an opaque response is sufficient, the request's mode can be set to no-cors to fetch the resource with CORS disabled; that way CORS headers are not required but the response content is inaccessible (opaque).

これはCloudfrontでの私の設定です ->https://imgsh.net/a/5GFcr4m.jpg


Access-Control-Allow-Credentials
false
Access-Control-Allow-Headers
Access-Control-Allow-Methods
GET
HEAD
PUT
POST
PATCH
DELETE
OPTIONS
Access-Control-Allow-Origin
*
Access-Control-Expose-Headers
*
Access-Control-Max-Age (seconds)

この問題を解決する方法について誰かアドバイスをいただけませんか?

関連情報