whitelist Cache-Control, Expires, Last-Modified for cors
This commit is contained in:
parent
e6b44ff1eb
commit
f4d467c998
|
@ -10,12 +10,12 @@ class Travis::Api::App
|
|||
before do
|
||||
headers['Access-Control-Allow-Origin'] = "*"
|
||||
headers['Access-Control-Allow-Credentials'] = "true"
|
||||
headers['Access-Control-Expose-Headers'] = "Content-Type"
|
||||
headers['Access-Control-Expose-Headers'] = "Content-Type, Cache-Control, Expires, Etag, Last-Modified"
|
||||
end
|
||||
|
||||
options // do
|
||||
headers['Access-Control-Allow-Methods'] = "HEAD, GET, POST, PATCH, PUT, DELETE"
|
||||
headers['Access-Control-Allow-Headers'] = "Content-Type, Authorization, Accept"
|
||||
headers['Access-Control-Allow-Headers'] = "Content-Type, Authorization, Accept, If-None-Match, If-Modified-Since"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user