<@U3Q99B9K8> - Maybe some header is missing. Remem...
# suitescript
l
@NSN - Maybe some header is missing. Remember had simillar problem and we had to add user-agent header.
n
Hi lukasz
Thanks for the reply. I have tried the following : response.addHeader( “Access-Control-Allow-Origin”, “*” ); response.addHeader( “Access-Control-Allow-Methods”, “GET,POST” ); response.addHeader( “Access-Control-Max-Age”, “1000" );
Nothing worked. Can you look into that . I think I am missing something.
I am ok if you charge for this
l
@NSN - I think you figured it out that User-Agent: Mozilla/5.0 solved the problem.
n
Not actually. It needs to be added in the request header and the Service provider where the request is being sent from, doesnt support addign any parameter in the header
And on the other hand , Netsuite is not goign to do any Provision to accept the request without this Parameter
so I am no where regarding this. Currently goin to do an external PHP url , which can be a middle layer
l
ok - we have a simillar solution with a middle layer for FTP connection - this is the only reasonable approach in such cases