624 questions
0
votes
1
answer
392
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
394
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
348
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
408
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
229
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
600
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 ...
0
votes
0
answers
46
views
HTTP 405 Status after reviewing multiple times the URL with Flask
I'm making a simple web app that sends, deletes and edits data to a MariaDB database and I'm using Flask as a framework. Currently, the app.py script is fully working except for the editing API, ...
0
votes
1
answer
39
views
Iterating over a list doesn't work when rescuing 302
When I iterate over a list, sending a get request with every element, block in rescue executes for the first iteration only. Here's the code:
def download_doc(gem_id)
url = @base_url + ...
0
votes
1
answer
93
views
Is there a way based on the URL to see if a video link would play?
i have a thousand youtube videos to review, some of which do not work. i'm trying to find a way to check these faster. I came across this script, which I thought worked perfectly. however, I'm ...
0
votes
0
answers
136
views
HttpURLConnection unable to capture HTTP 302 correctly in a Java test
I am trying to write a test for a URL /rdrct which redirects to another URL, say /test on the same host. On the application, the redirect works fine and I see a HTTP 302 in the Network Inspector but ...
1
vote
1
answer
2k
views
redirect: "manual" in fetch redirects to the request URL instead of redirecting to header location in response
I have the below code which am using to get the response header location.
let callAuthorize = async() => {
try {
const authorizeResponse = await fetch(requesturl,
{redirect: "...
0
votes
1
answer
219
views
How can I fix the HTTP status code 302 when updating a post in Rails using Rspec tests?
I've been stuck on this problem for a few days now, please help!
my problem is the following: I'm trying to do an Rspec test in Rails in a posts controller, but when I get to the update, this error ...
0
votes
1
answer
653
views
How can I fix the '401 Unauthorized' error when using Carte API to retrieve jobs and transformations?
I am trying to retrieve the list of jobs and transformations using the carte API REST. However I am not able. From code, when executing http://...../kettle/status I get a 200 code, but If I try to ...
0
votes
0
answers
307
views
Why is my .Net 6 API throwing a 302 on HTTP redirect rather than a 307, changing my POST to a GET?
I have one web API I essentially copied from another. Both have app.UseHttpsRedirection() as well as app.UseHSTS() in their Program.cs. Both have Swagger redirect working (this is a local internal ...
0
votes
1
answer
860
views
Jmeter 302 instead of 200
I have two request in 1st request is giving me 307 redirect along with location header.
I pull Location header from response headers of 1st request and then passed it to second request.
Now 2nd ...
-1
votes
1
answer
2k
views
Angular Interceptor Response 302
Can I make a interceptor to catch 302 response in angular, before automatic redirect?
How to intercept url redirect in angular response 302
1
vote
0
answers
254
views
Http API gateway error "too much redirect" and ALB health check move from 200 to 302 after deploying code
i have backend server in elastic beanstalk with rds in private subnet, so to access backend i have created http api gateway but problem is when i click on http api gateway endpoint i got error too ...
0
votes
0
answers
652
views
Prestashop admin login error 302, CloudFlare and LiteSpeed server
We have migrated a PrestaShop(PS) v.1.7.8.7 from an Apache server to a LiteSpeed server which includes the LiteSpeed cache module for PS and crawler enabled.
CloudFlare(CF) has always been in play ...
0
votes
0
answers
252
views
Redirected URL picking up the Auth token from the Angular application
I am creating an Angular app, where I need to download a huge file from S3. Since AWS doesn't allow more than 10MB downloads via APIG, I am using a pre-signed URL for download.
We need to protect this ...
1
vote
0
answers
94
views
og:url ignored in SPA when redirected to a route handling the rendering of required meta tags
I'm trying to implement social share buttons in my SPA that's served over Azure CDN.
In order overcome the problem of bots not executing javascript on my page I'm redirecting these (via 302) to my ...
0
votes
0
answers
89
views
how to download this pdf link python - 302 status code
I am trying to download pdf file. I use request. Here is the code.
url = 'https://unistream.ru/upload/iblock/230/230283e15180d590198137eba4e70644.PDF'
r = requests.get(url, allow_redirects=False)
...
4
votes
1
answer
2k
views
Handling 302 status with RTK Query
I have a POST request which returns a 302 when successful. I need to get the location response header which holds the url I'll need to redirect to. Currently I have this:
accountLogin: builder....
1
vote
0
answers
68
views
Using Laravel and Ajax and a custom package controller, how to login and redirect a user with ajax
I have a pretty base Laravel 9 install.
I wrote a custom package that is installed that provides a route and a controller action. The controller action is designed to Login a user via ajax, and return ...
0
votes
1
answer
429
views
HttpURLConnection not able to read 302 Response code
I am trying to download a file through code and it is working if the file is found. But if the Link returns a 302 code, I am getting a connection timeout through code. It is working fine in browser.
...
-1
votes
1
answer
4k
views
Fetch API with frontend Javascript returns CORS and 302 error
I am trying to fetch and API that has worked in the past for me, but now is returning:
[Error] Preflight response is not successful. Status code: 302
[Error] Fetch API cannot load http://api-im-trying-...
0
votes
1
answer
202
views
Django App hosted on IIS suddenly starts to show "Object Moved" Page plus gibberish on 302 redirect
Screenshot
It's an internal Django web app is hosted on a Windows Server 2008 with IIS 7.5, with Active Directory SSO enabled. Some links in the app response with a 302. For example, if the request ...
0
votes
1
answer
330
views
Wordpress Login page redirects back to itself
I’m trying to log in to wordpress dashboard but it redirects back to login page causing 302 error.
I’ve tried all solutions suggested in the internet including clearing caches, deactivating plugins ...
0
votes
1
answer
1k
views
Fetch html page via axios return error 301/302
I want to fetch a page HTML but every time I try to fetch either for HTTP or HTTPS I get a response either error 301 or 302.
Already tried add a proxy http and socks5 neither helped
axios("https:/...
1
vote
1
answer
196
views
Fetching a redirect's target URL in OpenRefine
I have a CSV of ~2000 URLs that, when queried, do a 301 or 302 redirect, and I'm trying to figure out if OpenRefine is able to export to a new column the destination url that it retrieves HTML from ...
0
votes
0
answers
526
views
PHP cURL gives an http error code 302 "Access denied" even when CURLOPT_FOLLOWLOCATION is enabled?
I am sometimes encountering an http error code 302 when using cURL in PHP. For instance with the following code, I get a 302 "Access denied", "You don't have permission to access the ...
0
votes
0
answers
366
views
BODY=null returned from REST call, status = 302
I am making a REST Api call in my Java application :
RestTemplate restTemplateGES = new RestTemplate();
HttpHeaders headers = new HttpHeaders();
String url = "http://myurl/common/api/...
0
votes
0
answers
262
views
Getting 302 response code in widget ajax call
I am working on a MVC application in which when have an option to request password reset email. When we got the email with the link, that link will redirect to the welcome page where we will enter ...
1
vote
1
answer
533
views
Tomcat redirects all post request to get
I have issue with tomcat 9.0.50.
I have a basic Springboot application to deploy and all my post requests are actually redirected to GET request.
here is my Main class:
@SpringBootApplication
public ...
5
votes
0
answers
3k
views
Streamlit redirect user to URL without interaction for auth
I'm trying to authenticate users of my streamlit app using OAuth 2 as described in this post (article repo here if you can't access post). That implementation provides users a link to click that ...
0
votes
0
answers
813
views
Missing/Dropped 302 redirects on cloud run
We have a system that 302 redirects users to different other websites based on several criteria and we have big-query analytics & grafana that help us visualize the business.
The system is getting ...
4
votes
2
answers
1k
views
On android app built with Capacitor, error ERR_CONNECTION_REFUSED after redirect on local url
I'am developping a Vuejs project (vue 2.6.11) and I want to build an android app from it.
For that, I'am using capacitor : "@capacitor/android": "^3.4.0" and "@capacitor/core&...
0
votes
1
answer
168
views
HTTParty post method doesn't return status code when adding follow_redirects = false along with other headers and cookies?
The HTTParty methods are like HTTParty.XXX(urlGoesHere, and Args Here)
I'm doing the following:
params = {:UserName => "uname", :Password => "pwd"}
cookie_hash = HTTParty::...
0
votes
2
answers
3k
views
Angular interceptor 302 response
I am adding a http interceptor in an existing Angular 11 app.
We have 2 resquests onload, they work as expected but when I add the interceptor with no logic, just return the same request, one request ...
1
vote
1
answer
140
views
Facebook scraper using 302 redirect and accessing old site same domain name
Developed a site whose domain was pointing to an external host.
On finishing the development I pointed the nameservers back to where the domain is hosted.
Everything changed over smoothly, I did not ...
0
votes
1
answer
1k
views
How to call certain apis without caching a response in angular when using service worker?
I Have attached 2 images.
First Image is the very fist time when I load the website where the service-worker is registered. There are 2 arrow mark that shows 302 found and sets the cookies of session ...
1
vote
1
answer
465
views
Failed to log in to a website to scrape my profile name using apps script
I've been trying to log in to this website using my credentials in order to scrape my profile name using google apps script. The status code is 200 and I can see that the script is able to get cookies....