response-headers Questions

2

Solved

How can I set the response header for each call in my application made with Spring Boot? I would like to try to use a filter to intercept all the calls and be able to set the response header. I fol...
Linnette asked 22/3, 2018 at 14:11

2

I am displaying a pdf in browser with inline from API using an aspx page. While saving the pdf using Chrome/Firefox, takes the filename from header("Content-Disposition", "inline;fil...
Eft asked 23/3, 2016 at 12:13

8

Solved

I'm using res.send and no matter what, it returns status of 200. I want to set that status to different numbers for different responses (Error, etc) This is using express
Mahayana asked 6/10, 2011 at 14:59

2

Solved

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 lef...
Watchmaker asked 8/9, 2017 at 9:46

0

How do I set response headers application-wide in Rails 3.2? The Rails guides to security for 4.0 mentions config.action_dispatch.default_headers: 8 Default Headers Every HTTP response from ...

5

Solved

I need to remove excessive headers (primarily to pass penetration testing). I have spent time looking at solutions that involve running UrlScan, but these are cumbersome as UrlScan needs to be inst...
Muscatel asked 9/10, 2012 at 16:1

8

Using ngResource in AngularJS 1.2rc(x), how do I get the status code now? RestAPI.save({resource}, {data}, function( response, responseHeaders ) { }); where RestAPI is my ngResource. The respon...
Milliard asked 10/9, 2013 at 22:7

2

Solved

This is an example script from a larger application, but shows the general process of what I'm trying to do. If I have the following script: <?php ob_start(); setcookie('test1', 'first'); setc...
Astrobiology asked 25/4, 2017 at 22:10

6

I didn't see any difference with or without this head information yet.
Seamount asked 12/9, 2009 at 4:57

0

I want to give a simple 403 forbidden error if source server return application/vnd.error+json for content type. Here is my code: server { root /var/www/; recursive_error_pages on; location / { ...
Desired asked 27/10, 2016 at 4:48

4

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 t...
Vanhorn asked 28/2, 2012 at 16:1

4

Solved

I have a situation where one of the response headers Content-Disposition has to be removed. So I thought of writing a servlet filter to do this. But I realized that the HttpServletResponse has only...
Subcontinent asked 25/10, 2011 at 20:6

3

Solved

In the OAuth 1.0 spec it is suggested to respond with the following WWW-Authenticate header: WWW-Authenticate: OAuth realm="http://server.example.com/" Is it suitable to add any other in...
Dorotheadorothee asked 1/12, 2011 at 12:57

1

Solved

When I run cURL on an object to see its HTTP response headers (I just added agent flag to emulate a browser request): curl -I -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.3...
Sports asked 9/9, 2015 at 18:39

1

I have a primary proxy which sends requests to a secondary proxy on which OpeenSSO is installed. If the OpenSSO agent determines that the user is not logged in, it raises a 302 redirect to the aut...
Oversew asked 30/4, 2013 at 10:4

1

Solved

I'm using $resource to get data from my RESTful service and I need to read response headers to get 'X-Page' and 'X-Total-Pages' value for pagination. Example: Access-Control-Max-Age:1728000 Cache...
Coffeehouse asked 10/4, 2014 at 22:32

2

Solved

I'm having troubles with collecting json values from a URL in my application. When I try to get them a error log is displayed in the console saying that origin is not allowed by access-control-allo...
Mayoralty asked 1/8, 2013 at 9:19

3

My PHP code: $expires_date = date('D, j F Y H:i:s', strtotime('now + 10 years')) . ' GMT'; header("Expires: $expires_date"); header('Content-type: text/javascript'); echo 'hello world'; When I...
Polyphemus asked 17/10, 2012 at 13:35

2

Solved

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 a...
Samathasamau asked 11/5, 2012 at 9:41

2

Solved

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. ...
Lactam asked 29/2, 2012 at 16:4

2

Solved

In the HTTP response header for my website it is returning a header that contains the following value. "Cache-Control: max-age=3600" Is 3600 in seconds or minutes?
Socha asked 1/8, 2011 at 5:19

2

Solved

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.

© 2022 - 2024 — McMap. All rights reserved.