You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsonWorker.js:34 Not allowed to load local resource: file:///OrchardCore.Resources/Scripts/monaco/IStandaloneEditorConstructionOptions.json
To fix this, we need to fix this code in 3 places (HtmlBodyPartMonacoSettings.Edit.cshtml, HtmlFieldMonacoEditorSettings.Edit.cshtml and TextFieldMonacoEditorSettings.Edit.cshtml) :
@{
var IStandaloneEditorConstructionOptionsSchemaPath = Url.Content("~/OrchardCore.Resources/Scripts/monaco/IStandaloneEditorConstructionOptions.json");
}
We need an absolute url, not a relative one.
Ex: to generate https://localhost:44300/blog/OrchardCore.Resources/..., not /blog/OrchardCore.Resources/...
What can we use to do that?
The text was updated successfully, but these errors were encountered:
See #13322 (comment)
jsonWorker.js:34 Not allowed to load local resource: file:///OrchardCore.Resources/Scripts/monaco/IStandaloneEditorConstructionOptions.json
To fix this, we need to fix this code in 3 places (HtmlBodyPartMonacoSettings.Edit.cshtml, HtmlFieldMonacoEditorSettings.Edit.cshtml and TextFieldMonacoEditorSettings.Edit.cshtml) :
We need an absolute url, not a relative one.
Ex: to generate
https://localhost:44300/blog/OrchardCore.Resources/...
, not/blog/OrchardCore.Resources/...
What can we use to do that?
The text was updated successfully, but these errors were encountered: