i have applied below CSP policy and changed my GWT version to 2.8.2 after that i am getting below error for PRC call ( to read Database and populate the data in UI and save data to DB) and button click ( front validations , read data from DB ..etc).
Error Details : java.lang.Exception: com.google.gwt.core.client.JavaScriptException: (EvalError) : Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://salesiq.zoho.com https://js.zohocdn.com https://static.zohocdn.com https://css.zohocdn.com/salesiq/ 'nonce-ByDmqt7tbtEnVEDxmZslig=='". my current csp policy : script-src 'self' https://salesiq.zoho.com https://js.zohocdn.com https://static.zohocdn.com https://css.zohocdn.com/salesiq/ 'nonce-ByDmqt7tbtEnVEDxmZslig=='; object-src 'self'; img-src https: 'self' data: my current code to make RPC call : protected AsyncCallback<List<BillToCompany>> getTeamBillToCompaniesByUser() { final String methodName = "getTeamBillToCompaniesByUser: "; GWTLOG.info(methodName + " started"); return new AsyncCallback<List<BillToCompany>>() { @Override public void onFailure(Throwable caught) { * Exception ex = new Exception(caught);* *GWTLOG.info(methodName + "onFailure" + "caught:" + ex);* } @Override public void onSuccess(List<BillToCompany> result) { GWTLOG.info(methodName + "onSuccess: billingAccnId: " + billingAccnId); updateBillToListBox(result, true); //boolean onload = true } }; } based on browser console message error is with below code msg = com_google_gwt_logging_client_TextLogFormatter_$format__Lcom_google_gwt_logging_client_TextLogFormatter_2Ljava_util_logging_LogRecord_2Ljava_lang_String_2(this.java_util_logging_Handler_formatter, record); val = record.java_util_logging_LogRecord_level.intValue__I(); val >= (java_util_logging_Level_$clinit__V(), $intern_38) ? (window.console.error(msg), undefined) : val >= 900 ? (window.console.warn(msg), undefined) : val >= 800 ? (window.console.info(msg), undefined) : (window.console.log(msg), undefined); $JsStackEmulator_stackDepth = JsStackEmulator_stackIndex - 1; -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/759fc781-f361-4871-95f0-58e74267bf6an%40googlegroups.com.
