Skip to content

Commit 319c5ff

Browse files
committed
Route options('/') correctly
1 parent d96c18c commit 319c5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/travis/api/app/cors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Cors < Base
1212
headers['Access-Control-Expose-Headers'] = "Content-Type, Cache-Control, Expires, Etag, Last-Modified, X-Request-ID"
1313
end
1414

15-
options // do
15+
options '/' do
1616
# make sure to update nginx.conf.erb when you update this
1717
headers['Access-Control-Allow-Methods'] = "HEAD, GET, POST, PATCH, PUT, DELETE"
1818
headers['Access-Control-Allow-Headers'] = "Content-Type, Authorization, Accept, If-None-Match, If-Modified-Since, X-User-Agent, X-Client-Release, Travis-API-Version, Trace"

0 commit comments

Comments
 (0)