no need to add these headers in the preflight

This commit is contained in:
David Weiser 2020-06-15 12:51:57 -07:00
parent 77f5928ead
commit c76cdf9fbe

View file

@ -210,8 +210,6 @@ func TestRouterConfigurableCors(t *testing.T) {
w := httptest.NewRecorder()
req, _ := http.NewRequest(http.MethodOptions, "/echo/world", nil)
req.Header.Add("Authorization", "Bearer CAFEBEEF")
req.Header.Add("X-Istreamplanet-User-Identity", "identity")
req.Header.Add("Origin", "blah")
r.ServeHTTP(w, req)