Problema con JavaFx WebView

Stato
Discussione chiusa ad ulteriori risposte.

dev_java

Utente Attivo
171
91
CPU
AMD Ryzen 5 3600
Dissipatore
CoolerMaster Hyper 212 Black Edition
Scheda Madre
Aorus B450I PRO WIFI
HDD
Samsung 860 EVO 500 GB + WD Red NAS Edition
RAM
32GB Corsair Vengeance 3200mhz
GPU
Gigabyte 1650 SUPER Windforce
Monitor
Samsung C27F396
PSU
Seasonic Focus GX-550, 80+ GOLD
Case
NZXT H210
Periferiche
Drevo Tyrfing V2, Logitech G402 Hyperion Fury
OS
Windows 10 Pro, Ubuntu
Buongiorno a tutti!!
Sono qui per esporvi un problema che sto avendo con la WebView di JavaFX:
Sto sviluppando una piccola applicazione in Java tramite la quale devo accedere al sito Nike Sneakrs (non sono sicuro di poterlo citare, nel caso non lo possa fare chiedo venia)
Il problema è che quando eseguo l'applicazione mi viene caricato il sito in una sua versione piuttosto scarna ed inoltre non riesco ad accedere dal sito principale (il quale però viene caricato correttamente)

lascio le immagini per rendere l'idea
351845 351846



Vi lascio qui il codice:


Main.java

Java:
package nikesnkrs;
import java.io.IOException;


import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class Main extends Application{
    private static Stage primaryStage;
    private BorderPane rootLayout;
    @Override
    public void start(Stage primaryStage) {
        this.primaryStage=primaryStage;
        this.primaryStage.setTitle("Nike Sneakers 2019");
        initLayout();
    }
   
    public void initLayout(){
        try{
            FXMLLoader loader= new FXMLLoader();
            loader.setLocation(Main.class.getResource("view/layout.fxml"));
            rootLayout=(BorderPane) loader.load();
            Scene scene=new Scene(rootLayout);
            primaryStage.setScene(scene);
            primaryStage.show();
        }catch (IOException e){
            e.printStackTrace();
        }
    }
    public static Stage getPrimaryStage() {
        return primaryStage;
    }
    public static void main(String[] args){
        launch(args);
    }

}


layout.fxml

XML:
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.web.WebView?>

<BorderPane minHeight="600.0" minWidth="500.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="nikesnkrs.view.layoutController">
   <center>
      <SplitPane dividerPositions="0.9531772575250836" orientation="VERTICAL" prefHeight="200.0" prefWidth="160.0" BorderPane.alignment="CENTER">
        <items>
          <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
               <children>
                  <WebView fx:id="webview" layoutX="143.0" layoutY="136.0" prefHeight="567.0" prefWidth="498.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
               </children>
            </AnchorPane>
          <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0" SplitPane.resizableWithParent="false">
               <children>
                  <Button layoutX="11.0" mnemonicParsing="false" onAction="#ricarica" text="Ricarica Sito" AnchorPane.leftAnchor="11.0" />
                  <Button layoutX="109.0" mnemonicParsing="false" onAction="#indietro" text="Indietro" AnchorPane.leftAnchor="109.0" />
                  <Label layoutX="302.0" layoutY="4.0" text="Nike Sneakrs 2019 " />
               </children>
            </AnchorPane>
        </items>
      </SplitPane>
   </center>
</BorderPane>


layoutController.java

Java:
package nikesnkrs.view;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebHistory;
import javafx.scene.web.WebView;

import java.net.URL;
import java.util.ResourceBundle;

import javafx.collections.ObservableList;
import javafx.event.ActionEvent;

public class layoutController implements Initializable{
    @FXML
    private WebView webview;

   
    private WebEngine webEngine;
    private WebHistory history;
    private ObservableList<WebHistory.Entry> entries;
   
    @Override
    public void initialize(URL location, ResourceBundle resources) {
        loadSite();
       
    }
   
    @FXML
    public void ricarica(ActionEvent event) {
        loadSite();
    }
   
   
   
    @FXML
    public void indietro(ActionEvent event) {
        history = webEngine.getHistory();
        entries = history.getEntries();
        history.go(-1);
    }
   
   
    private void loadSite() {


        webEngine = webview.getEngine();
        webEngine.setUserAgent("Mozilla/5.0 (X11; Linux x86_64)");
        webEngine.setJavaScriptEnabled(true);
        webEngine.load("https://www.nike.com/it/launch/");  
       
       
       
    }
   
}


Spero di essere stato chiaro e ringrazio infinitamente tutti coloro che mi aiuteranno
:thanks:
 

Mauro2004

Nuovo Utente
47
8
Riscrivi in questo modo il metodo loadSites() della classe layoutController.java
Java:
private void loadSite() {


        webEngine = webview.getEngine();
        webEngine.setUserAgent("Mozilla/5.0 (X11; Linux x86_64)");
        webEngine.setJavaScriptEnabled(true);
        //Log del sito
        com.sun.javafx.webkit.WebConsoleListener.setDefaultListener(
                    (webView, message, lineNumber, sourceId)-> System.out.println("Console: [" + sourceId + ":" + lineNumber + "] " + message)
               );
        webEngine.load(site);  
       
       
       
    }


Poi posta quello che ti verrà stampato nel terminale (il log del sito) quando carichi la pagina
 

dev_java

Utente Attivo
171
91
CPU
AMD Ryzen 5 3600
Dissipatore
CoolerMaster Hyper 212 Black Edition
Scheda Madre
Aorus B450I PRO WIFI
HDD
Samsung 860 EVO 500 GB + WD Red NAS Edition
RAM
32GB Corsair Vengeance 3200mhz
GPU
Gigabyte 1650 SUPER Windforce
Monitor
Samsung C27F396
PSU
Seasonic Focus GX-550, 80+ GOLD
Case
NZXT H210
Periferiche
Drevo Tyrfing V2, Logitech G402 Hyperion Fury
OS
Windows 10 Pro, Ubuntu
Allora questo è quello che mi viene quando provo a caricare la pagina "scarna":

Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:42:23 GMT+0100 (ora solare Europa occidental) OPTIMIZELY: Skipping JSON schema validation.
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:42:23 GMT+0100 (ora solare Europa occidental) BUCKETER: User B1BD4E932643B5E3D2B05F6B0DF64C02 is in variation SWAG4865Z of experiment swag-4865-test-avatar-src.
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:42:23 GMT+0100 (ora solare Europa occidental) DECISION_SERVICE: User B1BD4E932643B5E3D2B05F6B0DF64C02 does not meet conditions to be in experiment swag-5368-notify-me.
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:42:23 GMT+0100 (ora solare Europa occidental) OPTIMIZELY: Not activating user B1BD4E932643B5E3D2B05F6B0DF64C02 for experiment swag-5368-notify-me.
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [object Object]
Console: [https://www.nike.com/assets/vendor/react/16.8.6/react-dom.production.min.js:117] ReferenceError: Can't find variable: Intl
Console: [https://www.nike.com/assets/vendor/react/16.8.6/react-dom.production.min.js:157] ReferenceError: Can't find variable: Intl
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [https://www.nike.com/it/launch:2] Unhandled Promise Rejection: TypeError: Type error
Console: [https://www.nike.com/assets/dotcom/nav/4.24.1/dotcom-nav-client.js:53] NikeDotcomNav.mount() not called yet?
Console: [null:0] Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
Console: [null:0] XMLHttpRequest cannot load https://smodus.nike.com/id?d_visid_...541596792232916&d_coppa=true&ts=1573404143980 due to access control checks.
Console: [null:0] XMLHttpRequest cannot load https://logx.optimizely.com/v1/events. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [https://www.nike.com/assets/experie...e1d07134460c325f91ca27490de6ed8af49/app.js:42] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:42:35 GMT+0100 (ora solare Europa occidental) OPTIMIZELY: Activating user B1BD4E932643B5E3D2B05F6B0DF64C02 in experiment swag-4865-test-avatar-src.
Console: [null:0] XMLHttpRequest cannot load https://logx.optimizely.com/v1/events. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://c.go-mpulse.net/api/config....LOAD,Errors,TPAnalytics,UserTiming,LOGN&acao= due to access control checks.
Console: [null:0] The resource https://c.static-nike.com/a/images/...-of-the-people-karabo-by-you-release-date.gif was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
Console: [null:0] The resource https://c.static-nike.com/a/images/...-mid-fearless-blue-the-great-release-date.jpg was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
Console: [null:0] The resource https://c.static-nike.com/a/images/...dytybtqvf5lv/inside-the-vault-nike-x-clot.jpg was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
Console: [null:0] The resource https://c.static-nike.com/a/images/...tgekcnpmfu0/air-force-1-clot-release-date.jpg was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
Console: [null:0] The resource https://c.static-nike.com/a/images/...o9/air-jordan-v-island-green-release-date.jpg was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
Console: [null:0] The resource https://c.static-nike.com/a/images/...i-mid-fearless-melody-ehsani-release-date.jpg was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://bam.nr-data.net/events/1/f6...&rst=43157&ref=https://www.nike.com/it/launch due to access control checks.

Questo invece è quello che mi viene quando provo ad accedere:

Console: [null:0] Cannot load script https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js. Failed integrity metadata check.
Console: [https://www.nike.com/assets/nessie/core/4.3.2/scaffold.js:1] ReferenceError: Can't find variable: Redux
Console: [https://www.nike.com/assets/experience/ciclp/static/v2/844-ca49ec8145e/vendor.js:49] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:44:12 GMT+0100 (ora solare Europa occidental) OPTIMIZELY: Skipping JSON schema validation.
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://c.go-mpulse.net/api/config....LOAD,Errors,TPAnalytics,UserTiming,LOGN&acao= due to access control checks.
Console: [https://s3.nikecdn.com/unite/app/648/scripts/app.min.js:1] Unite experience took more than 10 seconds to load
Console: [null:0] Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
Console: [null:0] XMLHttpRequest cannot load https://smodus.nike.com/id?d_visid_...933558947133513&d_coppa=true&ts=1573404254292 due to access control checks.
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] XMLHttpRequest cannot load https://logx.optimizely.com/v1/events. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [https://s3.nikecdn.com/unite/app/648/scripts/app.min.js:22] [OPTIMIZELY] - INFO Sun Nov 10 2019 17:44:27 GMT+0100 (ora solare Europa occidental) OPTIMIZELY: Skipping JSON schema validation.
Console: [null:0] Fetch API cannot load https://api.nike.com/measure/uxevents/v1. Preflight response is not successful
Console: [null:0] Fetch API cannot load https://api.nike.com/measure/uxevents/v1. Preflight response is not successful
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://edge.api.brightcove.com/playback/v1/accounts/72451143001/videos/6098723229001 due to access control checks.
Console: [https://players.brightcove.net/72451143001/NvSTxms7MH_default/index.min.js:1] VIDEOJS:
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://edge.api.brightcove.com/playback/v1/accounts/72451143001/videos/6098676108001 due to access control checks.
Console: [https://players.brightcove.net/72451143001/NvSTxms7MH_default/index.min.js:1] VIDEOJS:
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Fetch API cannot load https://analytics.nike.com/v1/p. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [https://www.nike.com/assets/measure/data-capture/segment-wrapper.min.js:1] %canalytics-client@v1.23.0 - Error:
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://unite.nike.com/login?appVer...&visitor=05a96e1a-77d1-4bad-8dcb-66e8f0cde3c2 due to access control checks.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Fetch API cannot load https://insights-collector.newrelic.com/v1/accounts/714737/events. Preflight response is not successful
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] Unhandled Promise Rejection: TypeError: Type error
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Cross-origin script load denied by Cross-Origin Resource Sharing policy.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true.
Console: [null:0] XMLHttpRequest cannot load https://ct.pinterest.com/user/?tid=2616816324064&cb=1573404302918 due to access control checks.
Console: [https://s.pinimg.com/ct/lib/main.532239b0.js:1]
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
Console: [null:0] XMLHttpRequest cannot load https://analytics.nike.com/v1/batch. Origin https://www.nike.com is not allowed by Access-Control-Allow-Origin.
 

Mauro2004

Nuovo Utente
47
8
Mmmm prova a inserire questo codice nel Main del programma:
Java:
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
 

dev_java

Utente Attivo
171
91
CPU
AMD Ryzen 5 3600
Dissipatore
CoolerMaster Hyper 212 Black Edition
Scheda Madre
Aorus B450I PRO WIFI
HDD
Samsung 860 EVO 500 GB + WD Red NAS Edition
RAM
32GB Corsair Vengeance 3200mhz
GPU
Gigabyte 1650 SUPER Windforce
Monitor
Samsung C27F396
PSU
Seasonic Focus GX-550, 80+ GOLD
Case
NZXT H210
Periferiche
Drevo Tyrfing V2, Logitech G402 Hyperion Fury
OS
Windows 10 Pro, Ubuntu
Mmmm prova a inserire questo codice nel Main del programma:
Java:
System.setProperty("sun.net.http.allowRestrictedHeaders", "true");

Niente da fare, non cambia nulla :cry:
 

dev_java

Utente Attivo
171
91
CPU
AMD Ryzen 5 3600
Dissipatore
CoolerMaster Hyper 212 Black Edition
Scheda Madre
Aorus B450I PRO WIFI
HDD
Samsung 860 EVO 500 GB + WD Red NAS Edition
RAM
32GB Corsair Vengeance 3200mhz
GPU
Gigabyte 1650 SUPER Windforce
Monitor
Samsung C27F396
PSU
Seasonic Focus GX-550, 80+ GOLD
Case
NZXT H210
Periferiche
Drevo Tyrfing V2, Logitech G402 Hyperion Fury
OS
Windows 10 Pro, Ubuntu
Ok grazie comunque
 
Stato
Discussione chiusa ad ulteriori risposte.

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!