Questions tagged [response-headers]

545 questions
0
votes
1 answer

Intercept response headers in angular

I am creating an token based authentication system in angular5. With every request I will send a header containing the token (X-SDB-AUTH-TOKEN) and with some response with 401 or 403 status code I sed a response header to identify the type of…
Senchu Thomas
  • 518
  • 3
  • 9
  • 24
0
votes
1 answer

Openfire Rest API plugin field Authorization

I have a problem. I'm trying to get access to Openfire Rest API plugin via https in this way: https://my-openfire.org.ua:7443/http-bind/plugins/restapi/v1/chatrooms And I get error: Failed to load…
0
votes
0 answers

Magento 2 - Browser Cache Leverage - AWS Cloudfront

I'm working on Magento 2's speed optimization on one of my client's website. On analyzing from gtmetrix.com, it says to use leverage browser cache. To achieve the same I followed following points: I made changes in nginx configuration to set…
0
votes
2 answers

Missing headers in response of CORS query with Angular and Web API 2

I am currently writing an angular app which is communicated with a server part developed with Web API 2. Some times I want to add a specific header in the response of the query. I have enabled CORS. When the call is made from the same origin, no…
0
votes
0 answers

How does the header work that starts with the string "HTTP/" (case is not significant) in PHP?

I'm using PHP 7.2.0 I've installed the latest version of XAMPP on my machine that is running on Windows 10 Home Single Language 64-bit Operating System I'm mainly using following web browsers : Google Chrome Version 63.0.3239.132 (Official Build)…
PHPLover
  • 1
  • 51
  • 158
  • 311
0
votes
1 answer

Jetty server closes the stream generating an 500 error

When constructing a http response using jetty-9.4.6 I get the following exception. In my particular case I'm constructing the message from camel but this doesn't impact the behavior. org.apache.cxf.interceptor.Fault: Could not write to…
raisercostin
  • 8,777
  • 5
  • 67
  • 76
0
votes
0 answers

Response.header error in node server

I have a simple node server. When I type 'localhost:9015' in my browser I get the error showing below. I have checked the code and I found no error. What am I doing wrong? server is listening on 9015 / C:\nodeapp\cloudnh_v2\teste.js:41 …
Luiz Alves
  • 2,575
  • 4
  • 34
  • 75
0
votes
1 answer

Remote server not sending response headers, local server does

I have a php file that should be sending response headers, but it isn't. Here is the networking tab of both the local server and the remote server. As you can see, the local server is sending many different headers, but the remote server isn't…
Josh Lyness
  • 102
  • 1
  • 12
0
votes
1 answer

Cloudfront Gzipping Files Despite Set Not To Compress

I have a Rails app on a staging server that is using Cloudfront as a cdn for images in an S3 bucket. The images in the bucket are all jpegs (not gzipped). If I load an image directly from the bucket I can see in its Response Headers that Content…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
0
votes
1 answer

Return the incoming header as is | Nginx

We have a downstream application which is setting some custom headers to the requests from browser before hitting nginx. nginx serves only static contents. ie browser >> application A >> nginx The requirement is that the nginx should be able to…
0
votes
0 answers

Why does setting headers to 200 OK give 404 Not Found with scraping tools?

This is on an old PHP version, 5.2.17 that one of my web hosts has. The following code is verified to be executed on page load, before headers are sent: header($_SERVER["SERVER_PROTOCOL"]." 200 OK"); However, using the Facebook Debugger and…
Henrik Erlandsson
  • 3,797
  • 5
  • 43
  • 63
0
votes
1 answer

How to read response headers in angularjs applicaiton on FIRST TIME load(NOT USING $http or $resource)?

I have a angularjs application which is deployed on app server and we have a single sign on web server which on successful authentication redirects to our application with the username in the response headers. I have to read the username from the…
GOK
  • 2,338
  • 6
  • 34
  • 63
0
votes
0 answers

How to fix Header manipulation vulnerability reported by fortify scan for asp.net

I use fortify scan. I have an aspx which adds value from the database to the response header. Fortify scan reports this as vulnerability under header manipulation section. To fix this, I tried to validate the value that i get it from the database…
venkatesh k
  • 49
  • 1
  • 9
0
votes
1 answer

Default cache headers for tomcat?

I am using tomcat 7. When any page/JS file is served I see below headers getting set on browser net panel. Nowhere in code I am setting them. "Cache-Control", "no-cache, no-store" "Pragma", "no-cache" Does tomcat set them by default or…
scott miles
  • 1,511
  • 2
  • 21
  • 36
0
votes
1 answer

Setting X-Content-Type-Options response header corrupts the PNG file

I want to get the clarity on these headers in my application: response.setHeader("Content-Security-Policy", "frame-ancestors 'self'"); response.setHeader("X-Content-Type-Options", "nosniff"); response.setHeader("X-XSS-Protection", "1;…
ashishraaj
  • 751
  • 7
  • 27