I have a website and I bought a domain for it.
I need to forward from the domain I bought to the IP. I added A/AAAA in DNS on the webserver that hosts my website.
If I enter the website through the IP all is good.
However, if I enter through the domain I get:
"Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.".
It seems like it gets confused, like I store the data in the IP, and it won't allow me access through the domain.
I want the fix to be in the HTML - I don't want that every user would have to change the configuration on CHROME.
What can be the problem?
Is there an easy alternative?
Bad behaviour when forwarding a domain
in JavaScript
Posted
I have a website and I bought a domain for it.
I need to forward from the domain I bought to the IP. I added A/AAAA in DNS on the webserver that hosts my website.
If I enter the website through the IP all is good.
However, if I enter through the domain I get:
"Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.".
It seems like it gets confused, like I store the data in the IP, and it won't allow me access through the domain.
I want the fix to be in the HTML - I don't want that every user would have to change the configuration on CHROME.
What can be the problem?
Is there an easy alternative?