Questions tagged [http-options-method]

The HTTP OPTIONS request method is commonly used to ask a Web server which HTTP methods the server allows; servers typically respond with just a set of headers that includes the Allow header, whose value lists the allowed methods. The OPTIONS method is also a key part of the CORS protocol.

See also:

141 questions
0
votes
0 answers

Bearer token has been blocked by CORS policy

i have trouble with cross origin access. When i send a request without a bearer token in Authorization header, it's work. When i do the same request with a bearer token, i have the following alert : Access to XMLHttpRequest at…
Charley
  • 9
  • 3
0
votes
0 answers

HTTP Options enabled on non-servers

I recently scanned a list of nodes and noticed that HTTP Options Method is enabled on several devices that are not web servers, or servers at all (for example, printers, Win10 nodes, etc.) My first guess is that it's because these devices can be…
Deku
  • 11
0
votes
1 answer

No 'Access-Control-Allow-Origin' header in some chrome version

I am trying to upload some images to cloudinary through my client, it works fine on localhost, and in chrome version 87, but in chrome v89 i get No 'Access-Control-Allow-Origin' header error, any ideas on why this is happening? this is my server…
0
votes
0 answers

Property 'map' does not exist on type 'Observable'.ts(2339)
I'm trying to make a connection with node.js and when trying to use the .map it informs that the property does not exist, but the imports description here are correct
0
votes
1 answer

how can i set document.cookie in ajax?

the error i get OPTIONS https://page/ net::ERR_EMPTY_RESPONSE and the reason i do need to use a RequestHeader("Cookies", "test"); Login Failure: Browser did not support Cookie. Please enable Cookie. what can i do to get around this ? like how…
0
votes
1 answer

Why does HAProxy use HTTP OPTIONS for healtchecks, by default?

According to the HAProxy Configuration Reference, HAProxy uses an HTTP OPTIONS request for HTTP health checks, by default, with option httpchk. Since I think it's implementation dependent whether web servers provide an HTTP OPTIONS handler or not, I…
XeIte
  • 169
  • 2
  • 10
0
votes
1 answer

CORS header not working for Django backend- Angular frontend

I implemented CORS on my Django backend by installing django-cors-headers and following the steps mentioned in- https://github.com/OttoYiu/django-cors-headers. Essentially, I performed the following steps- pip install…
0
votes
1 answer

Fix Insecure HTTP Methods on Web Servers

my client is asking: Following web server are exposed to a number of different methods to end users that can expose the web service to varying degrees of risk. Acceptable web methods are typically GET, POST and CONNECT (in the case of HTTPS). •…
SMN
  • 31
  • 2
  • 4
0
votes
1 answer

issue posting multipart/form-data via html5 FormData to c# Api

My issue is that my c# api controller is kicking back theFormData Post request when I check for multi-part data here: IsMimeMultipartContent(), which then throws the message back to the UI: 415 (Unsupported Media Type) [HttpPost] …
0
votes
1 answer

Documentation on how to use CFHTTP method=options

I can't really find an example of cfhttp method=options. I am seeing documentation on many websites that cfhttp has a method named options, but they don't really show how we can make it work. I tried to search for http options but could not get…
whole3
  • 19
  • 2
0
votes
1 answer

CORS in spring-boot

I have added filter as answered for question in below link Spring Boot Data Rest + CORS not being enabled properly for OPTIONS/DELETE My modified code is : import java.io.IOException; import java.util.regex.Pattern; import…
0
votes
2 answers

Laravel 5.5 - CORS GET request changed into OPTIONS

I am trying to display my widget on customer's website. But I cannot make it work using CORS in Laravel 5.5. Here is my code: public/js/cb.js JavaScript file loaded on Customer's website. window.onload = do_request(); function do_request() { …
Mohal
  • 581
  • 1
  • 8
  • 24
0
votes
1 answer

Stange records in access.log apache 2

Today I notice stange records in access file of my apache 2 webserver ::1 - - [25/Jan/2011:14:13:31 +0200] "OPTIONS * HTTP/1.0" 200 - Does anyone know what these lines means ?
Dro1n2
  • 3,813
  • 2
  • 17
  • 7
0
votes
1 answer

OPTIONS method with Java client returns 200/OK always

I have a Jersey REST service, which when I access using curl from the command line gives me the expected result: $ curl -i -X OPTIONS http://localhost:7001/path/to/my/resource HTTP/1.1 402 Payment Required Date: Mon, 07 Aug 2017 01:03:24…
Binil Thomas
  • 13,699
  • 10
  • 57
  • 70
0
votes
1 answer

How to catch OPTIONS method call

My API is down right now, and my app crashed spectacularly due to the OPTIONS call getting a 503. After searching high and low, I've discovered it is very hard to Google "Catch failed options call", et al. without getting a bunch of posts about…
user888750