# Principal\_id another url

**URL:** <https://forum.dfinity.org/t/principal-id-another-url/37234>\
**Category:** Programs & Applications\
**Created:** [November 12, 2024, 1:46pm UTC](https://forum.dfinity.org/t/principal-id-another-url/37234 "2024-11-12T13:46:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sea-snake](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sea-snake/32/7243_2.png) [@sea-snake](https://forum.dfinity.org/u/sea-snake)\
**Post date:** [November 12, 2024, 7:49pm UTC](https://forum.dfinity.org/t/principal-id-another-url/37234/4 "2024-11-12T19:49:44Z")

</div>

It will only be different when the origin is different, the definition of an origin can be found here [Origin - MDN Web Docs Glossary: Definitions of Web-related terms | MDN](https://developer.mozilla.org/en-US/docs/Glossary/Origin)

In your subdomains example, both are different origins so they’ll result in different principals.

If both origins are under your control, e.g. they’re part of the same dapp, you can use the alternative frontend origins config to have the same principal.

> **[The Internet Identity Specification | Internet Computer](https://internetcomputer.org/docs/current/references/ii-spec#alternative-frontend-origins)**
>
> Introduction

---

_[View the full topic](https://forum.dfinity.org/t/principal-id-another-url/37234)._
