Skip to main content

403 Forbidden

Error Code: 403

This error occurs when the issuer and the OP Account ID do not match.

Error Message

  • "OP Account ID does not match the issuer of the Website Profile."
  • "OP Account ID does not match the issuer of the Content Attestation."

Causes

  • The issuer in the input JSON may not match the OP Account ID used for issuance.

Examples

  • The following is an example where the OP Account ID used for issuance and the issuer in the input JSON are different.
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://originator-profile.org/ns/credentials/v1",
"https://originator-profile.org/ns/cip/v1",
{
"@language": "en-US"
}
],
"type": ["VerifiableCredential", "ContentAttestation"],
"issuer": "dns:another.com",
"credentialSubject": {
"type": "Article",
"headline": "Example Web Page",
"image": {
"id": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg=="
},
"description": "An example web page for content attestation",
"author": ["John Doe"],
"editor": ["Jane Smith"],
"datePublished": "2023-07-04T19:14:00Z",
"dateModified": "2023-07-04T19:14:00Z"
},
"allowedUrl": ["https://example.com/*"],
"target": [
{
"type": "TextTargetIntegrity",
"cssSelector": "#main",
"content": "data:text/html,<div id=\"main\">Hello, world!</div>"
}
]
}

Output:

{"statusCode":403,"error":"Forbidden","message":"OP Account ID does not match the issuer of the Content Attestation."}

Resolution

  • Verify that the issuer in the input JSON matches the OP Account ID you are using.