This backs out r679 - thanks to Wade's over all fixes in r680. This code will probably be re-added in some from in #238
git-svn-id: https://beef.googlecode.com/svn/trunk@681 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -24,9 +24,6 @@ module BeEF
|
||||
#
|
||||
def do_POST(request, response)
|
||||
|
||||
response.header['Access-Control-Allow-Origin'] = '*'
|
||||
response.header['Access-Control-Allow-Methods'] = 'POST, GET'
|
||||
response.header['Access-Control-Allow-Headers'] = 'Content-Type'
|
||||
response.body = ''
|
||||
|
||||
# validate hook session value
|
||||
@@ -99,7 +96,6 @@ module BeEF
|
||||
|
||||
end
|
||||
|
||||
alias do_OPTIONS do_POST
|
||||
alias do_GET do_POST
|
||||
|
||||
# returns a selected parameter from the query string.
|
||||
|
||||
@@ -74,13 +74,11 @@ module BeEF
|
||||
response.header['Content-Type'] = 'text/javascript'
|
||||
response.header['Access-Control-Allow-Origin'] = '*'
|
||||
response.header['Access-Control-Allow-Methods'] = 'POST, GET'
|
||||
response.header['Access-Control-Allow-Headers'] = 'Content-Type'
|
||||
response.body = @body
|
||||
|
||||
end
|
||||
|
||||
alias do_POST do_GET
|
||||
alias do_OPTIONS do_GET
|
||||
|
||||
private
|
||||
|
||||
|
||||
Reference in New Issue
Block a user