CORS issue

Knowledge Base

CORS issue

If you have completed the above procedure but you can’t access the dApp because you get an error like this:

Then you need to configure your web server to accept request from application running in the browser context, not from servers. ObjectID is a distributed application so falls in the first case.

Normally web server do accept calls from the web app, but the Broweser check the response for a specif authorization from the server and if do not find it, then block the web app.

This process is managed by a protocol called CORS. Here you can find more information on CORS.

Here you can find some common case of web server configurations that solve the CORS issue.


Docker and Traefik

If your website is served by a Docker container and you use Traefik as a reverse proxy, you can resolve the CORS issue by adding a middleware configuration to your web server container in the docker-compose.yaml file.

Add the bold section below and restart the container:


If your website is served by a Docker container and you use Traefik as a reverse proxy, you can resolve the CORS issue by adding a middleware configuration to your web server container in the docker-compose.yaml file.

Add the bold section below and restart the container:

labels:
– “traefik.enable=true”
– “traefik.http.routers.vc.rule=Host(your.web.url)”
– “traefik.http.routers.vc.entrypoints=websecure”
– “traefik.http.routers.vc.tls.certresolver=myresolver”
– “traefik.http.services.vc.loadbalancer.server.port=81”
– “traefik.http.middlewares.cors.headers.accesscontrolallowmethods=GET,OPTIONS”,
– “traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*”
– “traefik.http.middlewares.cors.headers.accesscontrolallowheaders=*”
– “traefik.http.middlewares.cors.headers.addvaryheader=true”
– “traefik.http.routers.vc.middlewares=cors”


Nginx

if you are using NGINX, then you need to add the middleware in the nginex.conf file in

/etc/nginx/sites-available/default
or
/etc/nginx/nginx.conf

inside the server or location block, add the following line and then restart nginx:

location = /.well-known/did-configuration.json {
add_header ‘Access-Control-Allow-Origin’ ‘https://dapp.objectid.io/’ always;
add_header ‘Access-Control-Allow-Methods’ ‘GET, OPTIONS’ always;
add_header ‘Access-Control-Allow-Headers’ ‘Origin, Content-Type, Accept’ always;

if ($request_method = OPTIONS ) {
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
}

Need Help?

If you’re stuck or using a non-standard setup, feel free to reach out to our support.


Terms & Conditions Privacy - ObjectID is a service provided by SDV Consulting SRLS, VAT: IT 13168650961
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. View more
Cookies settings
Accept
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

 

Privacy Policy

Effective Date: 1/6/2025

This Privacy Policy describes how personal data is collected, used, and protected when you visit and interact with https://objectid.io (the “Website”), in compliance with the General Data Protection Regulation (EU) 2016/679 (“GDPR”).


1. Data Controller

The Data Controller is:

SDV Consulting srls
Via della Conciliazione 13, Arcore, 2082, Italy
VAT: IT13168650961
Email: info@objectid.io


2. Legal Basis for Processing

Personal data is processed based on one or more of the following legal bases under Article 6 of the GDPR:

  • The data subject has given consent (Art. 6(1)(a))

  • Processing is necessary for the performance of a contract (Art. 6(1)(b))

  • Processing is necessary for compliance with a legal obligation (Art. 6(1)(c))

  • Processing is necessary for the purposes of the legitimate interests pursued by the controller (Art. 6(1)(f))


3. Comments

When visitors leave comments on the site, we collect the data entered in the comments form, along with the visitor’s IP address and browser user agent string to help detect and prevent spam.

An anonymized hash of your email address may be sent to the Gravatar service to check if you are using it. The Gravatar privacy policy is available at: https://automattic.com/privacy. After approval, your profile picture may be visible publicly alongside your comment.


4. Media

If you upload images to the site, please ensure they do not contain embedded location data (EXIF GPS). Other visitors may download and extract location data from images.


5. Cookies

We use cookies to enhance your user experience. You may opt to save your name, email, and website when posting comments to simplify future interactions. Login-related and preference cookies are also used. You can manage cookies via your browser settings.

Cookies used by this site do not contain personally identifiable information unless you voluntarily provide it.


6. Embedded Content

Articles on this site may include embedded content (e.g., videos, articles, etc.) from third-party platforms. Such embedded content behaves exactly as if you had visited the originating site. These sites may collect data about you, use cookies, and monitor your interaction, especially if you are logged in to those platforms.


7. Marketing Campaigns

ObjectID may run digital marketing campaigns via platforms such as LinkedIn or similar providers. If you respond to these campaigns by filling out a form (e.g., requesting a demo or information), your personal data may be processed solely for the stated purposes and only by SDV Consulting srls.

  • No unsolicited marketing will be sent without your prior consent.

  • You may withdraw your consent at any time.

  • Marketing platforms used may process data under their own privacy policies.

We do not sell or disclose your data to third parties for commercial purposes.


8. Data Sharing

We do not share your personal data with third parties unless:

  • Required by law or legal process

  • Necessary for the provision of specific services you request

  • You have given explicit consent

If you request a password reset, your IP address may be included in the reset email for security verification.


9. Data Retention

  • Comments and associated metadata are retained indefinitely.

  • For registered users (if any), we retain user profile data until the account is deleted or the user requests erasure.

  • Data collected through contact forms or marketing campaigns is retained for a limited period and only for the intended purpose.


10. Your Rights Under GDPR

Under GDPR, you have the right to:

  • Access your personal data

  • Rectify inaccurate or incomplete data

  • Request erasure (“right to be forgotten”)

  • Restrict or object to processing

  • Data portability (where applicable)

  • Withdraw consent at any time, where processing is based on consent

  • Lodge a complaint with a supervisory authority

To exercise these rights, contact us at info@objectid.io.


11. International Data Transfers

We do not transfer your data outside the European Economic Area unless adequate safeguards are in place in compliance with Chapter V of the GDPR.


12. Data Security

We implement appropriate technical and organizational measures to protect your data from unauthorized access, loss, misuse, or alteration.


13. Automated Decision-Making

We do not use your data for automated decision-making or profiling without your explicit consent.


14. Changes to This Policy

We may update this Privacy Policy periodically. The updated version will always be available on this page with the “Effective Date” above.

 

Save settings
Cookies settings