diff --git a/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/controller/RestAPIController.java b/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/controller/RestAPIController.java index 5ea883fc..db8e1712 100644 --- a/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/controller/RestAPIController.java +++ b/petstore/petstoreapp/src/main/java/com/chtrembl/petstoreapp/controller/RestAPIController.java @@ -96,11 +96,6 @@ public String viewcart(Model model, @RequestParam Map params, Ht logger.info("jsession: " + this.sessionUser.getJSessionId()); logger.info("csrf: " + this.sessionUser.getCsrfToken()); logger.info("incoming arrAffinity: " + params.get("arrAffinity")); - - if(params.get("csrf") == null || !params.get("csrf").equals(this.sessionUser.getCsrfToken())) - { - return "Invalid CSRF token"; - } this.sessionUser.getTelemetryClient().trackEvent( String.format("PetStoreApp user %s requesting view cart", this.sessionUser.getName()), diff --git a/petstore/petstoreapp/src/main/resources/templates/fragments/footer.html b/petstore/petstoreapp/src/main/resources/templates/fragments/footer.html index 7509b453..7b179e42 100644 --- a/petstore/petstoreapp/src/main/resources/templates/fragments/footer.html +++ b/petstore/petstoreapp/src/main/resources/templates/fragments/footer.html @@ -10,7 +10,7 @@ if(e.target.innerHTML.includes('sm-')) { e.preventDefault(); - window.location.href = "https://azurepetstore.com/soulmachines"; + window.location.href = "/soulmachines"; } });