Hi <#C29HR0BFG|>, In my demo account, I am trying ...
# suitecommerce
s
Hi #C29HR0BFG, In my demo account, I am trying to locally execute sca extension environment. I successfully installed the node packages, created integration record, authenticated with NetSuite account and ran the "gulp extension:local" command. Everything seems to be working OK at this point but when I open the local url in browser: "mystore.domainname.com/sca-dev-2023-1-0/shopping-local.ssp", the screen is blank (It is displaying the page title="Shopping"). And in console, I am getting the error: `"Access to XMLHttpRequest at 'http://localhost:7777/who/shopping' from origin 'http://mystore.domainname.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space
local
. "` Has anyone else faced this issue before? Please guide. Your help is greatly appreciated.
k
@Sarim Khan if you are using Chrome, you can change a setting that will allow the browser to display the non-secure requests. Here are the steps to change the setting: 1. Open a New Tab in Google Chrome browser 2. Search Bar: Type chrome://flags/#block-insecure-private-network-requests 3. Under Block insecure private network requests: Click drop-down menu 4. Select Disabled 5. Close and re-open Google Chrome browser
👍 1
s
Many Thanks. Will try this out
@Keith Fetterman It did worked. Many Thanks again. So, I think it means, with demo account we face this error because we set it up with using insecure (HTTP) domain.
k
@Sarim Khan, I use demo and test accounts with HTTP, and I haven’t noticed an issue. I’ve only seen this issue when the website is HTTPS and I am testing local development mode using http://localhost.
As a safety precaution, I change the Chrome setting back to the secure mode after testing.
👍 1