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
2
votes
1 answer

Delphi Indy http OPTIONS

I'd like to use the HTTP Options OPTIONS /MyURL/DoCmd HTTP/1.1 Origin: http://www.asite.com Access-Control-Request-Method: POST Access-Control-Request-Headers: access-control-request-method What is the way to make this with Indy…
Hugues Van Landeghem
  • 6,755
  • 3
  • 34
  • 59
2
votes
1 answer

Why http request send twice from client to server ( OPTION and POST )

When I click the submit button, http request send twice from client to server. first one is OPTIONS and other one is POST method. login form HTTP Requests
Sadun89
  • 144
  • 1
  • 2
  • 12
2
votes
1 answer

Spring Boot Actuator with cors support and options request

I have Spring Boot Actuator with cors support, which configurated in application.properties like…
ne1s
  • 93
  • 1
  • 9
2
votes
1 answer

What application makes lots of HTTP OPTIONS requests?

I have an IIS/MVC.Net application that has recorded thousands of action-not-found exceptions. When I investigated these it appears that they are all HTTP OPTIONS requests to an MVC action that only supports GET. This action allows caching and…
Keith
  • 150,284
  • 78
  • 298
  • 434
2
votes
2 answers

CORS request preflight request, ending in user code

I have a set of WCF web services running on an internal only interface, which are called by a number of other websites (also internal only). The domain names match, it's just a different port number. I'm making AJAX POST requests to these web…
Morvael
  • 3,478
  • 3
  • 36
  • 53
2
votes
1 answer

jQuery file upload: Setting headers for HTTP OPTIONS in cross browser upload

Using jQuery file upload, I'm uploading a file to a third-party server that requires token authentication for all incoming requests. Before the upload, the browser sends an OPTIONS request to check for cross-domain authorization. That request fails…
ben
  • 1,432
  • 12
  • 17
2
votes
0 answers

Firefox not continuing after response to the OPTIONS request

Is there anything wrong with the response to the OPTIONS request? Access-Control-Allow-Headers: Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept Access-Control-Allow-Method: POST, OPTIONS Access-Control-Allow-Origin:…
sharky
  • 327
  • 4
  • 13
2
votes
1 answer

Override OPTIONS response in NancyFX / Visual Studio Web Server

I've build a RESTful web service using NancyFX which I'm now trying to POST to from a separate domain. Of course when I do that, I see a failed OPTIONS message in the console because this is a Cross Site POST and I need to ensure that Nancy responds…
Henry Wilson
  • 3,281
  • 4
  • 31
  • 46
2
votes
2 answers

How to do an HTTP Options request in AngularJS?

AngularJS' $http service doesn't provide for HTTP Options requests, and I very much would like to have them. I created a Web API using Django REST framework and I'm trying to leverage all it offers me in an AngularJS web application. My Django REST…
2
votes
1 answer

OPTIONS HTTP Request in Perl

Need to send HTTP OPTIONS Request in Perl. Looked through several CPAN modules; read the docs, no mention of OPTIONS request method, just GET, POST, PUT, DELETE. Do I need to format this manually? Or is there possibly another library/module that my…
1
vote
2 answers

Google app engine prevent OPTIONS request between two services

I've created a GAE project and I deployed two services: default (https://myservice.appspot.com) for the front-end app backend (https://backend-dot-myservice.appspot.com) for the backend (Node.js) I've also added a custom domain so that the default…
user2010955
  • 3,871
  • 7
  • 34
  • 53
1
vote
1 answer

access-control-allow-headers: * is being ignored

Although the OPTIONS returns * for Allow-Headers I'm getting the following CORS response. Access to XMLHttpRequest at 'https://example1.com' from origin 'https://example2.net' has been blocked by CORS policy: Request header field x-requested-with…
Roee Gavirel
  • 18,955
  • 12
  • 67
  • 94
1
vote
0 answers

Pre-flight request takes more time (275% more) than normal request

Overview I'm using Angular 6 as a front end for an web application which will communicate with the REST API developed in NodeJs. I've an Issue that the Preflight request takes long time than the normal request. Detail My frontend Angular 6…
S A R
  • 146
  • 3
  • 20
1
vote
0 answers

Shopify PUT request failing with 404 on OPTIONS preflight

I am using AXIOS from within my app to access the shopify admin api. I am updating a customer with metafields (which, as I understand it, the storefront API does not support with graphql). I am receiving a preflight options error when I do a PUT.…
Brian Edelman
  • 727
  • 4
  • 10
  • 26
1
vote
1 answer

Uber's API returning 404 during CORS preflight request

I'm attempting to use the Uber API in my JavaScript client. I'm aware that this involves CORS, since my client will be accessing the Uber API directly via AJAX. In the Uber Developers Dashboard, I set my Origin URI correctly. Then, I set up the most…