Enabled cross-origin requests to allow W3C widgets to load remote content

preferencesAboutTextFull
Craig Watson 9 years ago
parent 6faeea9ddb
commit f26f3d1c6a
  1. 1
      src/domain/UBGraphicsWidgetItem.cpp

@ -81,6 +81,7 @@ UBGraphicsWidgetItem::UBGraphicsWidgetItem(const QUrl &pWidgetUrl, QGraphicsItem
QGraphicsWebView::settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true); QGraphicsWebView::settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
QGraphicsWebView::settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard, true); QGraphicsWebView::settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard, true);
QGraphicsWebView::settings()->setAttribute(QWebSettings::DnsPrefetchEnabled, true); QGraphicsWebView::settings()->setAttribute(QWebSettings::DnsPrefetchEnabled, true);
QGraphicsWebView::settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, true);
page()->setNetworkAccessManager(UBNetworkAccessManager::defaultAccessManager()); page()->setNetworkAccessManager(UBNetworkAccessManager::defaultAccessManager());

Loading…
Cancel
Save