What you saw in Firefox was not the actual request; note that the HTTP method is OPTIONS, not POST. It was actually the ‘pre-flight’ request that the browser makes to determine whether a cross-domain AJAX request should be allowed:
The Access-Control-Request-Headers header in the pre-flight request includes the list of headers in the actual request. The server is then expected to report back whether these headers are supported in this context or not, before the browser submits the actual request.
Related Posts:
- jQuery Ajax File Upload
- jQuery Ajax POST example with PHP
- Cross-Origin Read Blocking (CORB)
- syntax error: unexpected token <
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- ajax jquery simple get request
- jQuery get textarea text
- jQuery AJAX cross domain
- Send POST data using XMLHttpRequest
- Set timeout for ajax (jQuery)
- How to generate a simple popup using jQuery
- What does on() in JavaScript do?
- jQuery AJAX submit form
- How can I upload files asynchronously with jQuery?
- Adding images to a Bootstrap Carousel with AJAX
- AJAX response error: net::ERR_EMPTY_RESPONSE
- Refresh/reload the content in Div using jquery/ajax
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- How to manage a redirect request after a jQuery Ajax call
- FormData append not working
- Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- Download a file by jQuery.Ajax
- Ajax success function
- AJAX not Working with php as supposed
- Cannot read property ‘push’ of undefined when combining arrays
- How to set header and options in axios?
- How to deal with net::ERR_SSL_PROTOCOL_ERROR?
- Check if checkbox is checked with jQuery
- Getting Error “Form submission canceled because the form is not connected”
- Is there a link to the “latest” jQuery library on Google APIs?
- How can jQuery deferred be used?
- Uncaught TypeError : cannot read property ‘replace’ of undefined In Grid
- Failed to load resource: net::ERR_FILE_NOT_FOUND loading json.js
- Disable/enable an input with jQuery?
- Get class name using jQuery
- Use images like checkboxes
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- ChangeDate – Date Picker Bootstrap
- How to convert selected HTML to Json?
- How to Open New window on every Click
- Jquery Ajax Call, doesn’t call Success or Error
- How to create a stopwatch using JavaScript?
- With jQuery, how do I capitalize the first letter of a text field while the user is still editing that field?
- How to move an element after another element using JS or jquery?
- Why is the jquery script not working?
- JQuery Datatables : Cannot read property ‘aDataSort’ of undefined
- Load image with jQuery and append it to the DOM
- Change text on hover, then return to the previous text
- Javascript/Jquery Convert string to array
- JSON.parse() not working
- How to send email by using javascript or jquery
- How to get current date in jQuery?
- Print the contents of a DIV
- How to Scroll Down – JQuery
- Embedding instagram webpage inside an iframe
- Do something if screen width is less than 960 px
- Uncaught TypeError: Cannot read property ‘toUpperCase’ of undefined
- jQuery remove options from select
- JavaScript post request like a form submit
- is there something like isset of php in javascript/jQuery?
- jQuery – Dynamically Create Button and Attach Event Handler
- Highlight a word with jQuery
- Error: TypeError: $(…).dialog is not a function
- getContext is not a function
- navigator.geolocation.getCurrentPosition sometimes works sometimes doesn’t
- How to check if the URL contains a given string?
- How should I initialize jQuery?
- How to reload page every 5 seconds?
- Fire oninput event with jQuery
- What is the non-jQuery equivalent of ‘$(document).ready()’?
- Changing the selected option of an HTML Select element
- “NS_ERROR_DOM_BAD_URI: Access to restricted URI denied”
- How to set “style=display:none;” using jQuery’s attr method?
- How to dequeue a script?
- WordPress Ajax always returns a 404 error
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- admin-ajax.php HTTP400: BAD REQUEST – The request could not be processed by the server due to invalid syntax
- Click loads template via ajax
- How to speed up admin-ajax.php in wordpress
- Sending jsPDF documents to the server
- Ajax Modal Flickers When Opened Multiple Times
- splitting the URL using jQuery
- List of JS Events for Widgets?
- Fancybox type popup window that’s not an iframe
- url – ajax loaded but no JS
- Properly embed javascript into WP (using function.php) – doesn’t work?
- Uncaught ReferenceError: jQuery is not defined – although jQuery is loaded [closed]
- Why i can’t get custom fields value or post ID via Ajax?
- Custom AJAX form not working async
- Accessing an API with jQuery and AJAX
- Putting custom html/js page into Elementor as it’s own block
- Get the ID of a page in Parent combobox in editor
- Can’t Listen to KeyDown in TInyMCE Iframe (jQuery) and Pass it to Parent HTML FORM
- How to echo a PHP code into WooCommerce variation product?
- How to call a function from functions.php with ajax?
- Ajax post doesnt call succes after got the response
- Get ajaxForm response value
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Open image gallery on link click
- Uncaught ReferenceError: tippy is not defined