Merge pull request #1228 from umap-project/url-in-cors-message

Add target URL in CORS error message
This commit is contained in:
Yohan Boniface 2023-07-25 10:15:49 +02:00 committed by GitHub
commit 2821cfba86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,8 @@ L.U.Xhr = L.Evented.extend({
// 0 === request cut by user or CORS
self.ui.alert({
content: L._(
'Issue reaching that URL (network problem or CORS protection)'
'Issue reaching that URL (network problem or CORS protection): {url}',
{ url: settings.uri }
),
level: 'error',
})