AJAX call works on JSP page, but not on its imports

So I have this ajax call: $.ajax({ url: ‘${pageContext.request.contextPath}/filial/select.json’, method: ‘GET’, success: function (json) { var itens=[]; for (var i = 0; i < json.length; i++) { itens.push(‘<input id= “idFilial’+json[i][0]+'” type = checkbox class=checkbox1 name = filiaisId value=”‘+json[i][0]+'”>’ +json[i][1]+”-“+ json[i][2] + ‘</input></br>’); } $(‘#idFilial’).html($(“<tbody/>”, {html:itens})); $(‘.filiaisId’).each(function(){ $( “#idFilial”+ $(this).attr(‘value’)).prop( “checked”, true); }); }, error: function…

Is R8 / Android Gradle Plugin smart enough to keep library classes/methods needed only in test apk?

Let’s say I have an app that depends on a library. This library has two methods: void usedInApp() void usedInTest() In the app I call usedInApp(). I also have an instrumentation test that calls usedInTest(). If I run instrumentation tests ./gradlew app:connectedDebugAndroidTest is R8/AGP smart enough to know to keep usedInTest() or will it get…

How to add cookies to vue-apollo request?

I use vue-cli-plugin-apollo and I want to send language chosen by user from frontend to backend via cookie. As a vue-apollo.js I use the next template import Vue from ‘vue’ import VueApollo from ‘vue-apollo’ import { createApolloClient, restartWebsockets } from ‘vue-cli-plugin-apollo/graphql-client’ // Install the vue plugin Vue.use(VueApollo) // Name of the localStorage item const AUTH_TOKEN…