Questions tagged [response-headers]

545 questions
0
votes
1 answer

response header is null in $httpProvider.interceptors responseError in angularjs

I add errorHandlerInterceptor to handle errors as you seen below: (function() { 'use strict'; angular .module('rasool') .config(httpConfig); function httpConfig($httpProvider) { …
0
votes
1 answer

Response Header issue on Azure Web Application

I am not sure what is happening here. When I run my web application locally and click a button to download a file, the file is downloaded fine and Response header as you can see in the attached screenshot where it says local. But when I publish the…
akd
  • 6,538
  • 16
  • 70
  • 112
0
votes
1 answer

CodeIgniter 3 - set_header does not work

This issue occurs when I'm trying to build CORS enabled RESTful API. When I put this inside my view file (I'm using CodeIgniter) // Allow from any origin if (isset($_SERVER['HTTP_ORIGIN'])) { …
strike_noir
  • 4,080
  • 11
  • 57
  • 100
0
votes
0 answers

Space in Access Control Allow Methods Caused Error

I ran into an issue which is little strange. The files were migrated on the server long back and were never changed since a month and everything was working fine. Basically I had this in PHP(I was using laravel framework 5.2) since a month :…
Mihir Bhende
  • 8,677
  • 1
  • 30
  • 37
0
votes
1 answer

donwload pdf from array in laravel

I want to download a PDF file from an associative array which looks like this: $Array_data= Array( [0] => Array ( [Date] => 2017-01-02 [Name] => Asia consumer MC Alpha bmk - risk [Level] => .333000 ) [1] => Array …
Rajat
  • 111
  • 4
  • 14
0
votes
1 answer

Remove IIS Server Tags through IIS gui only (no code/config)

Have 4 IIS servers... one is on v 6.2, another on v 7.5, another on v 8 and another on v 10. I've got the following two tags in the response header... Server:Microsoft-IIS/7.5 X-Powered-By:ASP.NET I managed to remove the X-Powered-By tag quite…
0
votes
1 answer

Disabling page cache doesn't disable resources from being cached?

I was using the HTML meta tags to disable cache until I learned that this only works if the file is served locally, so I disabled the cache through the recommended use of headers by putting this at the top of my pages: header("Cache-Control:…
Waxi
  • 1,641
  • 2
  • 14
  • 20
0
votes
1 answer

angularjs interceptor for status code 302 not able to read response header set-cookie

the service/backend is sending me set-cookies in a 302 redirect but i am not able to read the response header which has set-cookies. basically i want to redirect the user to login page and clear the session if Set-Cookie:redirectURL="" and it…
0
votes
1 answer

Rails move info from Headers to Body

I tried to use Rails method request.headers["Access-Token"] to get Access-Token from Headers and move it to Body. But the problem is that headers' output looks like this: https://pp.vk.me/c638121/v638121746/239b4/PF4NFzGBTio.jpg Is there any way to…
0
votes
2 answers

Adding Security Headers in response of spring MVC Application

I want to add below headers in the response header in Spring MVC : X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff I have written below code in MvcConfig file which extends WebMvcConfigurerAdapter. @Bean public Filter…
Abhishek Singh
  • 1,367
  • 1
  • 22
  • 46
0
votes
1 answer

Can't set headers after they are sent. How to avoid it?

I'm using Node JS application that connects to Kakfa using kafka-node. I'm catching some exceptions is there is any errors in connecting to kafka. Here is the code. I'm getting can't set headers after they are sent. What is the best way to avoid…
gwthm.in
  • 638
  • 9
  • 24
0
votes
2 answers

How to retry a request based on response headers using request and nodejs?

I have a small nodejs script and I want to download a zip file: const fs = requrie("fs"); const request = require("requestretry"); export class FileFetcher { public async fetchFile(url: string): Promise { const fileName =…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
0
votes
0 answers

X-Forecast-API-Calls http response header inclusion and usage

I'm using the weather API from https://developer.forecast.io/docs/v2#forecast_call. In the 'Response Headers' section, they say I can use the X-Forecast-API-Calls to get information about my API usage. I would like to use it to count how many calls…
Yafim Simanovsky
  • 531
  • 7
  • 26
0
votes
0 answers

Can not get response cookie from angular $http post using ionic

I am sending a post auth request from my localhost to a remote server to get response cookies returned by server(using ionic proxy to solve CORS). From chrome network inspector, I can see the response cookie has been returned from server. However, I…
eded
  • 3,778
  • 8
  • 28
  • 42
0
votes
1 answer

PyCURL is processing body before headers

Inspired by accepted answer to this question I'm trying to wrap PyCurl with requests-like interface. Everythig would be fine, but after following PyCURL docs describing how to read body encoding from headers, I'm experiencing the following problem.…
ElmoVanKielmo
  • 10,907
  • 2
  • 32
  • 46