Closed jrwdunham closed 2 years ago
I am closing this issue. I have investigated and documented it. I do not believe it can be fixed in OLD-Pyramid or Dative v. 1. I have made a note in the relevant issue for Dative v. 2 for how we can sidestep it there.
Problem
Dative v. 1 is failing to perform searches across forms (in some browsers and some versions) because it uses the non-standard
SEARCH
HTTP method and this violates the CORS rules. See investigation section below.Acceptance Criteria
POST forms/search
endpoint when issuing search requests (not theSEARCH /forms
endpoint.)Investigation
This is the error text from the browser console in Chrome:
It does not appear that we can fix this in the OLD REST API. The OLD already returns
SEARCH
in theAccess-Control-Allow-Methods
list.Dative v. 1 is using the non-standard HTTP method
SEARCH
. It should use thePOST
method for this endpoint that is provided, but it does not. Unfortunately, we can't really fix Dative v. 1 because its CoffeeScript source is too old.Error in Chrome
Chrome Ignores SEARCH Method in Preflight Response
Firefox Recognizes SEARCH Method in Preflight Response