function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Swagato RaySwagato Ray 

stateCode and Countrycode in the SFDC site

How to use stateCode and Countrycode(State and country picklist) to external site because whenever I use this feature in the site,then unauthorized exception is occuring .
Check Field level securty on Address fields for site profile. You might need to allow access to address fields for Site Guest Profile in org.

PS: if this answers your question then hit Like and mark it as solution!