Are we allowed to edit alter the CORS policy in SCA? I’d like to make some queries to another api from the front end and I’m running into cors.
m
Mohammad Sharaf Ali
01/09/2021, 8:03 AM
Which api you're trying to hit? CORS request blocking is on the browser end when the remote origin doesn't allow via the headers
Access-Control-Allow-Origin
c
Chris
01/11/2021, 2:58 PM
@Mohammad Sharaf Ali It’s an api outside of NetSuite. My question is about whether there’s a way to insert the proper headed server side, that will allow us to make a call from the browser to an outside api.
m
Mohammad Sharaf Ali
01/11/2021, 3:05 PM
You need to check whether the outside api is allowing CORS in the pre-flight options request.