624 questions
0 votes
1 answer
389 views
How to redirect to a URL from the Location header in a 302 response using Axios?
the request returns a 302 with a URL in the Location header. The browser automatically makes a GET request to that URL, but I need to redirect the user to the page with that URL. const res = axios.get(...
0 votes
0 answers
44 views
Spring security redirects on login page on every axios request
When I perform axios calls to server it always returns 302. Here is axios configuration: const api = axios.create({ baseURL: "http://localhost:8080", }); api.interceptors.request.use( (...
0 votes
1 answer
66 views
Redirect url from x-www-form-urlencoded request doesn't work out of the box
row body is printed in Postman as TradeSha=https%3A%2F%2Fenv.example.com%2Fpayments%2FRedirectHandler%2F1002%3FtId%3D100201195%26token%3D9c8dce5b-ddbb-4190-9cbe-3da45fad50d2 Location header is printed ...
0 votes
0 answers
305 views
Problems in tracking redirect requests on Postman
I am trying to track how my POST request is being handled by a remote API. On Postman, I see that on making a POST request to /enter, I ultimately get a 200 response (after all redirections). Tracking ...
0 votes
0 answers
48 views
Different response headers for 302 response in Postman and Node.js axios
I am making a POST request from Node.js backend to an external website (mirror.codeforces.com). In both Postman and Node.js axios response, I receive status code 302 (I have set maxRedirects = 0), but ...
1 vote
0 answers
393 views
302 Redirect not allowed even though origin header is correct
I have client A (https://something.localtest.me:3002) making a request to backend B (https://something.localtest.me:8000/api/some_path). Backend B responds with a 302 redirecting to client C (https://...
0 votes
0 answers
35 views
Request method 'POST' not supported, market payment integration notification
I have the following problem: Request method 'POST' not supported I'm doing it in java "Sprint Boot" and I know that the error is due to the security configuration: String urlMercadoPago = &...
0 votes
1 answer
114 views
Laravel login loop
I have a Laravel 10 project (with Breeze) using Sanctum for authentication. I have served my application and successfully registered myself as a user. But whenever I try to log in, I am immediately ...
0 votes
0 answers
41 views
Why often hyperlinks fail to redirect to new page in asp,net app
I have hosted asp.net app in godaddy. Whenever any hyperlink is clicked, requested page is not loaded but responded with 302 found error status code and automatically user is logged out and ...
1 vote
1 answer
347 views
302 "Found" page when trying to redirect from HTTP to HTTPS
I'm am trying to set up a redirect from HTTP to HTTPS for a client site. I added the following code to the .htaccess file: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{...
0 votes
0 answers
61 views
Fixing wrong 302 redirect
I forgot to delete 302 flag in the following directive in htaccess, and cannot use get on the website anymore although I deleted it. RewriteCond %{QUERY_STRING} . RewriteRule (.*) /$1? [R=302,L] ...
0 votes
0 answers
406 views
Identity server redirection not working after token expired and getting 302 found
We have SPA with the IDS 4 and its does not redirect to the login screen post token expires. Getting below response as blank screen as it does not redirecting to identity server urls. enter image ...
0 votes
1 answer
202 views
Django Throws 302 error when I call API written on Questions app and redirects to /login/?next=/api/questions/tags-list/
I have written an API URL on questions model for retrieving a 1st 10 tags, its a get call. When I call it from the react app, i am getting 302 to that api and redirects to http://localhost:8093/login/?...
0 votes
1 answer
224 views
Need help setting up a curl command to fill in a form. Server responds with HTTP/1.1 411 Length Required after a 302 redirect
I am trying to write a batch script which will alow users to easily fill in a police form about illegal fireworks. It takes some personal information about the user and uses this in combination with ...
1 vote
1 answer
597 views
(Status: 302) Gitlab Pages JSON translation files CORS policy error & redirect
I have an Angular project in which I use JSON files (path: src/assets/i18n)to translate the content into different languages. I put my project on Gitlab Pages, but I get the following error: Access ...