Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,763
    • Issues 44,763
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,328
    • Merge requests 1,328
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #334947
Closed
Open
Issue created Jul 01, 2021 by Cameron Swords@cam_swordsDeveloper

Remove via-scanner DAST header as it can cause authentication to fail

Problem to solve

The Via-Scanner header added as part of #327564 (closed) can DAST authentication to fail when scanning a website that accesses external domains. This occurs when the browser rejects the request due to violation of a CORS policy.

Error in browser console

Access to XMLHttpRequest at '[url with external domain]' from origin '[current url]' 
has been blocked by CORS policy: Request header field via-scanner is not allowed by 
Access-Control-Allow-Headers in preflight response.

Proposal

The Via-Scanner header should be optionally added using the CI/CD variable DAST-ADVERTISE-SCAN.

Intended users

  • Sasha (Software Developer)
  • Sam (Security Analyst)

What is the type of buyer?

Ultimate

Reported by Ultimate customer in this internal ticket

Edited Jul 01, 2021 by Kate Grechishkina
Assignee
Assign to
Time tracking