import*as i18n from"../i18n/i18n.js";import{Issue,IssueCategory}from"./Issue.js";const UIStrings={corsForPrivateNetworksRfc:"CORS for private networks (RFC1918)"},str_=i18n.i18n.registerUIStrings("sdk/CorsIssue.ts",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class CorsIssue extends Issue{constructor(s,r){super([Protocol.Audits.InspectorIssueCode.CorsIssue,s.corsErrorStatus.corsError].join("::"),r),this.issueDetails=s}getCategory(){return IssueCategory.Cors}details(){return this.issueDetails}getDescription(){return{file:"issues/descriptions/corsInsecurePrivateNetwork.md",substitutions:void 0,links:[{link:"https://web.dev/cors-rfc1918-guide",linkTitle:i18nString(UIStrings.corsForPrivateNetworksRfc)}]}}primaryKey(){return JSON.stringify(this.issueDetails)}}