Questions tagged [response-headers]

545 questions
11
votes
2 answers

Getting data from response headers in axios

I'm making a post request using Axios and this call returns data in the response headers and body. In the headers, it's returning an x-auth-token and I want to get the value of this token but it returns: undefined is not an object Here is how I'm…
Tiya Morgan
  • 111
  • 1
  • 1
  • 5
11
votes
3 answers

Missing CORS headers in response from PHP/Apache2

A Zend Expressive project my company is working on is ready to be shipped but in our staging environment we seem to be missing response headers for a CORS pre-flight request. This does not happen in our development environment. We're using…
halfpastfour.am
  • 5,764
  • 3
  • 44
  • 61
11
votes
2 answers

is it possible to remove "Google Frontend" from google app engine response header?

I would like to know if there is any way to remove the server name(Google Frontend) from the google app engine response header to hide that the app is deployed on GAE.
11
votes
3 answers

Can we add http response headers directly into html pages

I need to add response headers like X-Frame, Cache-control, Pragma etc directly into the html code, may be, using attributes in html elements? It is for help pages which are directly coming from a directory via href link. Is there any way to add…
Pramod
  • 768
  • 1
  • 12
  • 27
11
votes
2 answers

How to get read data from response header in jquery/javascript

Possible Duplicate: jQuery and AJAX response header If the server is returned data in response header how I can read it. I am sending an AJAX request to a server. It does not return anything but the Location in response header. I want to read…
Muhammad Usman
  • 10,426
  • 22
  • 72
  • 107
10
votes
2 answers

jQuery Ajax access custom response headers

I'm using some API, and I noticed that in the response I have this: I'd need to read the "x-dl-units-left", but I get null: $.ajax(ajaxConfig).done(function(response, textStatus, xhr){ var left = xhr.getResponseHeader("x-dl-units-left"); //null …
Sampgun
  • 2,822
  • 1
  • 21
  • 38
10
votes
3 answers

What is the "X-iinfo" HTTP header?

I've seen an HTTP header called X-iinfo. Her are some examples: X-Iinfo: 5-17009424-17011001 PNNN RT(1388193526625 4677) q(0 0 0 -1) r(1 1) U10000 X-Iinfo:4-13055499-13055501 NNNN CT(182 -1 0) RT(1388193578304 0) q(0 0 1 4) r(6 6) U1 Parts of them…
Evan Hahn
  • 12,147
  • 9
  • 41
  • 59
9
votes
2 answers

How to add custom HTTP headers in React application?

I have a react js application. I want to add some http headers in the every response that's being returned from the app. Could you please suggest how to implement this ! NOTE : I am not trying to call any api with headers in request. I want my…
i.am.jabi
  • 620
  • 1
  • 5
  • 23
9
votes
1 answer

Removing Vary:* response header from asp.net mvc 4.6

How do I remove the Vary:* from the response header for all my requests in the WEB APP (ASP.NET MVC) Thanks
Sampat
  • 1,301
  • 6
  • 20
  • 34
8
votes
0 answers

Refused to get unsafe header "Server-Timing" when Timing-Allow-Origin is set to *?

I'm trying to embed some Salesforce code, which is working fine on Edge, and some versions of Google Chrome, but some others are giving me the Refused to get unsafe header "Server-Timing" error, even though when checking the Response Headers on Edge…
Danyx
  • 574
  • 7
  • 34
8
votes
1 answer

Prevent multiple OPTIONS request for the same domain

I am trying to develop a single page application (SPA) that uses as endpoint a domain that is different from the one hosted in the SPA domain (ie: site.com and site-api.com or api.site.com). Access Control headers are already set up in the back-end,…
GiamPy
  • 3,543
  • 3
  • 30
  • 51
8
votes
3 answers

HttpResponse does not contain a definition for AddHeader for Dot Net Core

When moving a project into .Net Core, AddHeader throws an error: Error CS1061 'HttpResponse' does not contain a definition for 'AddHeader' and no extension method 'AddHeader' accepting a first argument of type 'HttpResponse' could be found…
goamn
  • 1,939
  • 2
  • 23
  • 39
7
votes
2 answers

IIS 6 - Classic ASP - Set *.asp response header's content-type to "text/html;charset=UTF-8"

How do I can set *.asp files (Classic ASP) in a Web Site under IIS to have Response Header's Content-Type set to text/html;charset=UTF-8? Right now, the files are served as Content-Type=text/html. An alternate approach is to add <% Response.Charset…
DashK
  • 2,640
  • 1
  • 22
  • 28
7
votes
4 answers

jQuery cross domain request response headers

I am making cross domain ajax requests with html data type. They work OK as I include Access-Control-Allow-Origin in the response from the server. Problem is I need to get certain headers from the server's response and whatever I do, response…
nLL
  • 5,662
  • 11
  • 52
  • 87
7
votes
0 answers

Can't access Content-Disposition in axios

I have a React JS application where I send a GET request with axios. In the browser, in the Response Headers section, when I send the request I get Content-Disposition: attachment;filename="image123.pdf", but when I try to get this in React, I don't…
Asking
  • 3,487
  • 11
  • 51
  • 106
1
2
3
36 37