http-headers

How does the Chrome browser decide when to send OPTIONS?

旧街凉风 提交于 2019-12-17 19:27:58
问题 I have an AngularJS WebAPI application. As far as I can understand the OPTIONS request is constructed automatically by the browser. POST http://localhost:3048/Token HTTP/1.1 Host: localhost:3048 Connection: keep-alive Content-Length: 78 Accept: application/json, text/plain, */* Origin: http://localhost:2757 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 Content-Type: application/x-www-form-urlencoded Referer: http:/

Node js / Angular js - CAUTION: Provisional headers are shown [duplicate]

∥☆過路亽.° 提交于 2019-12-17 19:00:50
问题 This question already has answers here : “CAUTION: provisional headers are shown” in Chrome debugger (32 answers) Closed 5 years ago . This is my Angular js piece code: $http({ method:'POST', withCredential:true, url:$scope.config.app_ws+'auth/signup', data:{user:$scope.auth} }).success(function(status, response){ console.log(response); }).error(function(status, response){ alert(response+'Bummer :( , an error occured plese retry later. '); }); This is my Node.js piece backend: var allow_cross

Resource interpreted as document but transferred with MIME type text/css

和自甴很熟 提交于 2019-12-17 18:46:44
问题 Resource interpreted as document but transferred with MIME type text/css This is the error that's showing up in Google Chrome Inspector. The file is: http://www.doanddare.org/css/style.css It is being rendered by a php processor. How can I fix this error? The headers being returned are: Request Headers Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Cache-Control:max-age=0 User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit

Chrome browser is not sending if-modified-since header to server

扶醉桌前 提交于 2019-12-17 18:45:01
问题 I have these headers being sent to the client by the server: Cache-Control:private Connection:keep-alive Content-Encoding:gzip Content-Type:text/html Date:Sun, 27 Nov 2011 11:10:38 GMT ETag:"12341234" Set-Cookie:connect.sid=e1u...7o; path=/; expires=Sun, 27 Nov 2011 11:40:38 GMT; httpOnly Transfer-Encoding:chunked last-modified:Sat, 26 Nov 2011 21:42:45 GMT I want the client to validate that the file hasn't changed on the server and send a "200" if it has otherwise a "304". Firefox sends: if

How do disable Transfer-Encoding in Tomcat 6

和自甴很熟 提交于 2019-12-17 18:27:52
问题 I have a web application running on Tomcat 6.0.29 server and JDK 1.6. When I send the response to the client, Tomcat sends Transfer-Encoding: chunked in the headers when the response size is > 8KB. For responses < 8KB, it sends Content-Length : I understand that Chunked encoding is the preferred way to handle bulk responses, however our clients do not want to change their code (as it is distributed all across the servers). How can I disable Chunked encoding in Tomcat? I could Disable HTTP/1.1

Duplicate headers received from server

孤人 提交于 2019-12-17 17:28:35
问题 Duplicate headers received from server The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue. Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION): Multiple distinct Content-Disposition headers received. This is disallowed to protect against HTTP response splitting attacks. I found this error while exporting to pdf in chrome. Response.Buffer =

CORS Access-Control-Allow-Origin despite correct headers

烂漫一生 提交于 2019-12-17 16:48:40
问题 I am trying to set up simple Cross-Origin Resource Sharing using jQuery (1.7.1) powered ajax on the client and apache served python (django) server. According to all the instructions I have read my headers are set correctly, but I keep getting the following error: XMLHttpRequest cannot load http://myexternaldomain.com/get_data. Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin. The header being I am trying to (I am not sure it is even getting past the browser) send is

MVC Redirect with custom headers

限于喜欢 提交于 2019-12-17 16:37:57
问题 Hopefully this is a simple question for someone out there. Basically upon receiving a request to my MVC controller, I want to: Add an "Authorization" header to the response Redirect to another application sitting on another domain Read the "Authorization" header at this external site. It appears the act of redirecting, strips out all my custom headers and redirects. My question, how can I add a new header, AND perform a redirect, AND have that header show up in the headers for the receiving

In Java, how do I extract a password from a HttpServletRequest header without generating a String object?

五迷三道 提交于 2019-12-17 16:17:37
问题 A common Java security guideline for handling sensitive data (== passwords) recommends never using a String object to store the data, and instead using an array of bytes or chars. I am trying to apply this guideline in a HttpServlet handler. In particular, I am using a basic-authentication-like approach where the credentials are passed in in a header (this is a GET request, so no body). The issue I'm running into is that it seems impossible to get to the header data without generating a

Python send POST with header

一世执手 提交于 2019-12-17 15:35:43
问题 I try to build a python script who sends a POST with parameters for extracting the result. With fiddler, I have extracted the post request who return that I want. The website uses https only. POST /Services/GetFromDataBaseVersionned HTTP/1.1 Host: www.mywbsite.fr "Connection": "keep-alive", "Content-Length": 129, "Origin": "https://www.mywbsite.fr", "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084