예, 공식 사양 교차 출처 속성을 다음과 같이 명시합니다.
The crossorigin attribute is a CORS settings attribute. Its purpose is to allow images from third-party sites that allow cross-origin access to be used with canvas.
이를 사용하여 js 오류를 기록하는 것과 같은 JavaScript 오류를 해결할 수 있습니다.
if (securityOrigin()->canRequest(targetUrl)) {
msg = myErroe;
line = myLineNumber;
source = sourceURL;
} else {
msg = "Error!";
source = String();
line = 0;
}