Unable to validate Antifoergertoken when cookie is set to httponly using Angular 8 and ASPCORE 2.2

When i set the value of httponly=true. AutoValidateAntiforgeryTokenAttribute doesnot validate the request and return 400 bad request AntiforgeryTokenSet tokens = antiforgery.GetAndStoreTokens(context); context.Response.Cookies.Append(“XSRF-TOKEN”, tokens.RequestToken, new CookieOptions() { HttpOnly = true}); After doing this cookie become secure as shown below set-cookie: XSRF-TOKEN=; path=/; samesite=lax; httponly But AutoValidateAntiforgeryTokenAttribute returns 400 bad request when changed the Value HttpOnly =…

Details

how to call firebase callable functions from localhost?

I get this error: whenever this cloud function is called: const makeAdmin = firebase.functions().httpsCallable(“makeadmin”); makeAdmin({ make: “admin” }) .then(response => { console.log(response); }) .catch(err => console.error(err)); the function is: const functions = require(“firebase-functions”); const admin = require(“firebase-admin”); admin.initializeApp(); const db = admin.firestore(); const auth = admin.auth(); exports.makeAdmin = functions.https.onCall(async (data, context) => { try {…

Details

How to set :before psudo property for a group of css styles

How can I set :before psudo property for a set of css styles, .two-row-two-column mat-grid-tile:nth-of-type(3) .serveroutput-pop, .two-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop, .two-row-three-column mat-grid-tile:nth-of-type(2) .serveroutput-pop, .one-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop { left: -397px; right: auto; } My expected code is like, (.two-row-two-column mat-grid-tile:nth-of-type(3) .serveroutput-pop, .two-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop, .two-row-three-column mat-grid-tile:nth-of-type(2) .serveroutput-pop, .one-row-two-column mat-grid-tile:nth-of-type(1) .serveroutput-pop)::before { left: -458px; right: auto; }

Details