Good morning :slightly_smiling_face: when using th...
# suitecommerce
m
Good morning 🙂 when using the items search API (https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_N2665337.html) I'm getting a CORS error using an ajax request as the documentation recommends. Is there any way to approve the domain we're using through NetSuite, or does this have to be run through a proxy/restlet?
s
You're getting a CORS error because you're requesting it from a domain other than the one you're currently on? That is, when you're not using the web store?
m
Correct - we're using our "brand website" not the web store itself
s
Right, well this is internet security working as expected then 🙂
In short, there's no easy 'fix' for this because it's intended. If you want to build something like this you will need to build a proxy service, for example using Suitelets
1
m
Darn, makes sense. Thanks Steve!
s
If you have a Site Builder licence, which you probably do, and want to use some very old technology, then you can use the WSDK / external catalog site functionality https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N2600392.html#bridgehead_N2600422
👀 1
It's about 20 years old but generally still works
❤️ 1