Questions tagged [request-headers]
The request-headers tag has no usage guidance.
request-headers
673
questions
0
votes
0
answers
30
views
How to remove headers like Authorization while using playwright apiContext
My project implemented the Authorization as a fixture so that all test modules can work as a logged-in user.
There is a function to upload a file to s3, which actually consists of a few steps:
...
0
votes
0
answers
7
views
When receiving the host using next/headers in Next.js and making a request to the BE, a response for B.com is returned for a request made to A.com
I am using Next.js 13 and the infrastructure is running on ECS Docker.
We have various customer metadata configured in the back office. We are fetching this data during the process of using ...
0
votes
1
answer
44
views
401 unauthorized error in requesting to backend
I am requesting to my backend APIs. but I have a problem.
when I request any post API, my response is this error. What is the problem and how can I solve it?
I am using axios for requesting and it's ...
0
votes
0
answers
37
views
I want to add the default header in all the request going to controller in spring boot
I need to add the headers based on the path to the incoming requests in spring boot, suppose if the base path is /v1/users, request headers I need to add x-operation as "USER" and if the ...
0
votes
0
answers
29
views
Tracking Down - Cannot modify header information - headers already sent by Error
I'm trying to fix this error
Warning: Cannot modify header information - headers already sent by (output started at ~ wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-...
1
vote
1
answer
129
views
Getting requests.exceptions.InvalidHeader: Header part (1) from ('Sec-Gpc', 1) must be of type str or bytes, not <class 'int'> though Chrome sends it
I get requests.exceptions.InvalidHeader: Header part (1) from ('Sec-Gpc', 1) must be of type str or bytes, not <class 'int'> when trying to use the Sec-Gpc attribute in a header:
headers = {
...
0
votes
1
answer
55
views
Request fails when using httpx in python but is successful using Request
I am trying to send an api request using httpx and it is failing.
When I try to send the same request using request, it works fine.
What could be causing this?
Using Request
import requests
headers = ...
0
votes
0
answers
87
views
Content Type: Multipart/Form-Data
I have a spring boot application which is implemented from the spring cloud gateway starter mvc. When any api is hit with content type as multipart in its header, the request fails to fetch the query ...
0
votes
1
answer
101
views
Not receiving client headers in google cloud function
I am using Google cloud functions, and has deployed and had been using 2nd gen functions with flask applications. I am using Hasura actions to trigger these functions. Recently after I updated and ...
2
votes
0
answers
34
views
Karate - Setting header for the subsequent calls on the same scenario is not working after updating to 1.x.x
We have been using Karate 0.9.6 so far and everything was working, and we had to update to latest version(1.4.1) and test started breaking, below is an example how the scenarios are created,
Login ...
0
votes
0
answers
35
views
Unable to remove/hide the Cookie from request header in an Angular application with nginx reverse proxy
I am using nginx reverse proxy server to run my Angular application, in my application I am fetching data from Elasticsearch, while fetching via REST APIs it throws too long frame exception: HTTP ...
0
votes
0
answers
28
views
Allow both `'Access-Control-Allow-Origin' '*'` and `Content-Security-Policy "frame-ancestors *"`
I have the following conf.d/prod.conf.
It does not raise Refused to display 'https://v10.frontend.tech/' in a frame because it set 'X-Frame-Options' to 'sameorigin'. because of add_header Content-...
0
votes
0
answers
50
views
Express with Node Js and TS App request specific header info brings the whole server response
kind of exploring new things with node js and express with typescript using a class approach.
In a specific component in app and trying to retrieve a specifc header settled on postman in order to do ...
-1
votes
0
answers
34
views
How to block cookies in the header
I'm using API gateway integrated lambda function for getting cookies. whenever I'm calling that route chrome is sending the unwanted cookies as the header. So I'm getting (Request Header Too Large ...
0
votes
0
answers
12
views
Browser returns 200 OK but requests and urllib.request.Request returns 403
I'm trying to 'get' some URLs, some of them return 403 but they open on the browser returning 200 OK.
headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, ...