Mixed Domains Management on Local Servers in NetSuite
Mixed domains in local server environments can lead to production page loads during redirection, causing potential security issues.
When testing on a local server, handling mixed domains is crucial. The application typically loads the production version of a page when redirecting between domains, which may lead to issues during development.
For example, if you start on the local version of the Shopping domain using the shopping-local.ssp URL and then log in, you'll be redirected to the production version at my-account.ssp. To revert to the local version, you must manually change the URL:
Change:
https://checkout.netsuite.com/c.xxxxxxx/sca-dev-denali/my_account.ssp?n=3To:
https://checkout.netsuite.com/c.xxxxxxx/sca-dev-denali/my_account-local.ssp?n=3Common Errors
When manually updating this URL, certain browsers, like Chrome, may present a blank page accompanied by console errors. A common error might be:
Mixed Content: The page at 'https://checkout.netsuite.com/c.xxxxxx/sca-dev-denali/my_account-local.ssp?n=3' was loaded over HTTPS, but requested an insecure stylesheet 'http://localhost:7777/css/myaccount.css'. This request has been blocked; the content must be served over HTTPS.To mitigate this issue in Chrome, you can click on the shield icon in the address bar and select Load unsafe scripts to load the page correctly. This action permits some insecure content to be displayed alongside secure content.
Alternative Solutions
You can also:
- Launch Chrome with the
--allow-running-insecure-contentflag to disable content security temporarily. - Install SSL certificates on your local web server to enable secure data transfer.
By correctly managing these mixed domains, developers can ensure smoother transitions during testing and avoid potential security pitfalls.
Frequently Asked Questions (4)
How can I handle mixed domain redirects during local server testing in NetSuite?
What should I do if Chrome displays a blank page with console errors during testing?
Are there permanent solutions to handle mixed content issues in NetSuite local testing?
Does enabling the 'Load unsafe scripts' option in Chrome affect security during local testing?
Was this article helpful?
More in Commerce
- SuiteCommerce CAPTCHA Configuration Options and Setup
Configure SuiteCommerce CAPTCHA for enhanced security. Enable CAPTCHA for registration, login, guest checkout, and orders.
- Single Sign-On Integration for NetSuite Web Stores
Implement inbound single sign-on integration for NetSuite web stores using SAML or OpenID Connect for seamless access.
- Facets Management for Commerce in NetSuite
Facets management in NetSuite Commerce optimizes item search filters, enhancing performance and improving user experience.
- SuiteCommerce Analytics Data and Cookie Consent Integration
SuiteCommerce Analytics Data enables tracking of shopper behavior. This requires a cookie consent extension for user preferences.
Advertising
Reach Commerce Professionals
Put your product in front of NetSuite experts who work with Commerce every day.
Sponsor This Category