Sha256: 328d8b579cb9bd05e1c256d27bd6c739d2d4d7d9aecfb489fb01b2a19f29733f

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.elements
        [ Element::Server ]
    end

    def issue_count
        1
    end

    it 'logs hosts with a wildcard Access-Control-Allow-Origin' do
        options.url = "#{url}/vulnerable"
        run
        issues.should be_any
    end

    it 'does not log hosts without a wildcard Access-Control-Allow-Origin' do
        options.url = "#{url}/safe"
        run
        issues.should be_empty
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/components/checks/passive/grep/insecure_cors_policy_spec.rb
arachni-1.2 spec/components/checks/passive/grep/insecure_cors_policy_spec.rb
arachni-1.1 spec/components/checks/passive/grep/insecure_cors_policy_spec.rb