Skip to content

Commit

Permalink
Merge pull request #32 from max-doronin/KAZOO-883
Browse files Browse the repository at this point in the history
KAZOO-883: GWT API client running on Chrome can't make crossbar API calls
  • Loading branch information
James Aimonetti committed May 9, 2013
2 parents d64e81a + 243a4d7 commit 52176e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whistle_apps/apps/crossbar/src/v1_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ add_cors_headers(Req0, #cb_context{allow_methods=Ms}=Context) ->
get_cors_headers(#cb_context{allow_methods=Allow}) ->
[{<<"Access-Control-Allow-Origin">>, <<"*">>}
,{<<"Access-Control-Allow-Methods">>, wh_util:join_binary(Allow, <<", ">>)}
,{<<"Access-Control-Allow-Headers">>, <<"Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Auth-Token, If-Match">>}
,{<<"Access-Control-Allow-Headers">>, <<"Content-Type, Depth, User-Agent, X-Http-Method-Override, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Auth-Token, If-Match">>}
,{<<"Access-Control-Expose-Headers">>, <<"Content-Type, X-Auth-Token, X-Request-ID, Location, Etag, ETag">>}
,{<<"Access-Control-Max-Age">>, wh_util:to_binary(?SECONDS_IN_DAY)}
].
Expand Down

0 comments on commit 52176e0

Please sign in to comment.