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:
scotty.b.brown@gmail.com
2011-01-07 22:52:02 +00:00
parent bd37d5fbd7
commit 3ba437578a
2 changed files with 0 additions and 6 deletions

View File

@@ -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.

View File

@@ -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