Third-party authentication is redirecting AJAX calls within the same domain

Our asp.net core application requires an AJAX call to be made to an IIS 8.0 Server that is protected by CA SiteMinder SSO.

When making Get requests using AJAX, the desired response is received. However, when Put or Post requests are made, a 302 response is obtained with the URL indicating that SiteMinder is requesting credentials.

It was believed that as long as a user is authenticated by SiteMinder, requests made to the same domain from the same browser session would not explicitly require user credentials.

However, it appears that SiteMinder is still requesting user credentials even after authentication and including the SiteMinder cookie in the request headers.

The question arises as to why SiteMinder treats GET and POST/Put requests differently, and if there is a way to make POST/PUT requests work without redirection from SiteMinder when using XHR.

Here's the link to the function that makes the XHR request:

function fixRecords() {
    // Function code goes here
}

Answer №1

When the SiteMinder cookie is set as HttpOnly, it means that it will not be transferred by the ajax engine. This is a key feature of HttpOnly cookies.

Additionally, SiteMinder, now known as CA SSO, distinguishes between various HTTP methods such as GET, POST, and PUT. It is important for your SiteMinder administrator to verify that the rules in place cover all these methods, especially PUT which is commonly overlooked.

Hope this helps!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the protocol for handling Long data with over 18 digits sent by backend developers? Who holds the responsibility, front-end or back-end?

It came to my attention that the data provided by our backend developer is in a Long format with over 18 digits. I raised concerns about how the last two digits might turn into 00 when converted to JS. I suggested receiving the data in String format or sho ...

Tips for adjusting the placeholder color in Material UI using React JS

Is there a way to customize the background color and flashing color of the Skeleton component in Material UI? I would like to implement custom styling for it, similar to what is shown below: <Skeleton variant="circle" classes={{root:'pla ...

jquery method to make entire navigation bar clickable

I have a single menu bar. I recently discovered an interesting way to make the entire menu bar area clickable using jQuery. Design code snippet: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuControl.ascx.cs" Inherits="MenuControl"%> ...

Error Encountered: AngularJS - 'DashboardController' is Not Registered

I just set up a new angular app and I'm encountering an issue where my controller is not registering. The error message I am receiving states: The controller with the name 'DashboardController' is not registered. My app module and dashbo ...

Responsive frame structure

I have set up a scene using A-frame () where I currently have a green box attached to the camera at all times. However, as the camera moves, the box also moves along with it. My question is, how can I position the box in the top right corner of the screen ...

Creating a responsive database using an Express application and Socket.IO

As I am developing an application using Express Create App, specifically designed to run on Plesk hosting, I have already configured it following the example provided by the official Plesk Node Express project. Everything is working smoothly so far. The ap ...

Creating code in AngularJS

I have the following template structure: <h1 class="text-center" ng-bind-html="row.text"></h1> When the content of my row.text is a string like this: Hi your name is {{ name }} It will display as shown below: Hi your name is {{ name }} ...

Transforming a Typescript class instance into a JavaScript object

Here is the code snippet I am working with: class A{ test: string constructor(test: string){ this.test = test } } const a = new A("hi") console.log(a) This is what the output looks like: A { test: 'hi' } However, when at ...

directive does not execute when the <Enter> key is pressed

I recently came across a helpful post on Stack Overflow about creating an Enter keypress directive. After following the instructions, here is my JavaScript code that replicates the functionality: JavaScript var app = angular.module('myApp', [] ...

problem with passing the identification number into the function

I am facing an issue with passing the id into a javascript onClick method. I am using the Spring framework and in the controller class, I send the related id to the JSP file like this: model.addAttribute("uploadid", uploadid); Afterwards, I need to p ...

Unlocking the Power of Combining JMVC and Server-side MVC Models

It's been a few days since I posted this question here and still no response. I also tried posting it on forum.javascriptMVC.com and finally got an answer, but I'm looking for more insights. Here's my question: After reading the documentat ...

Sending an array of functions to the onClick event of a button

Having difficulty with TypeScript/JavaScript Currently working with an array of functions like this private listeners: ((name: string) => void)[] = []; Successfully adding functions to the array within another function. Now looking to trigger those ...

Angular UI-Grid encountering difficulties in rendering secure HTML content

I'm having trouble displaying server-generated HTML in UI-Grid. Specifically, I want to show HTML content in my column header tooltips, but no matter what I try, the HTML is always encoded. Here's an example to illustrate the issue: var app = an ...

Improving the implementation of in-memory caching in javascript/nodejs

One thing that comes to mind is the issue of memory leaks. Consider this code snippet: let inMemoryCache = {}; app.get("/hello",(req, resp) => { inMemoryCache[unixTimeStamp] = {"foo":"bar"} resp.json({}); }); It&apo ...

Converting a .ts file to .js for Typescript 3.2 and higher versions

Is there an alternative method to compile a .ts file to .js file using Typescript version 3.2 and above since tsc.exe is no longer present in these versions? In our project, we relied on tsc.exe to compile all the .ts files, but with the upgrade to Typesc ...

What is the method to run a script within a particular div?

Here is an example of the DOM structure: <div> <button>Click me</button> <img src=#> </div> <div> <button>Click me</button> <img src=#> </div> <div> <button>Clic ...

Having difficulty importing app.js into other modules within ExpressJS

Having trouble importing app.js into other modules in ExpressJs. It imports successfully, but I can't use the functions defined in the app.js file. The code snippet I am working with is as follows: I have this app.js var app = express(); var express ...

Is jQuery utilized by the bootstrap-grid system?

Finale: In our current setup, we are utilizing Angular 9, and like many frontend frameworks, there is a preference against incorporating other JavaScript libraries alongside the framework for manipulating the DOM. The Challenge: I am hesitant to include ...

Issues encountered when attempting to submit form with PHP and ajax

I am facing an issue with a form that is echoed from the database - only the first echoed form submits when I try to submit, while the rest do not. The code snippet below illustrates my problem. editquestion.phh <thead> <tr> ...

Is there a way to send zip file(s) through a $.ajax() POST request without relying on an HTML form?

I have used the JSZIP library to create a zip file containing 2 xml files: jszip.js jszip-load.js jszip-inflate.js jszip-deflate.js var zip = new JSZip(); zip.file("hi.xml", "<?xml version="1.0"?><root/></root></xml>"); zip.fil ...