Hot answers tagged

7

Modern browsers block cross-domain JavaScript requests by design - it's a security feature, not a bug. There exists workarounds for this, which can be used only if you have an access to configure the external domain: The theexternal.domain source needs to explicitly enable your request by including Access-Control-Allow-Origin: http://siteMakingTheCall....


4

The difference between jquery call and the native httclient call is a method of making http asynchronous request. jquery uses old good xhr, but httpclient uses modern fetch api. When making CORS request with fetch API sometimes browser sends preflight request to understand server CORS possibilities (which origins are accepted, which headers, etc.). Your ...


2

Finally got the answer to this For this we have to disable the "Request Management" service on the SharePoint server. Following are the steps to do it. Go to Central Admin-->Application Management-->Manage services on server (under Service Applications)--> and Stop the Request Management service. If you don't have the access to Central Admin refer this ...


1

You have to configure Alternate Access Mapping to support https://www.mysharepoint.com to map to https://server_wfe_1. If you don't do this SharePoint will not correctly map the incoming URL to a query and then write the outbound URL correctly. SharePoint search matches the inbound request to the AAM Zone and then determines how to return the result URLs via ...


1

I've done something similar using the AllowFraming web part on SharePoint pages I can modify (https://dev.office.com/sharepoint/docs/sp-add-ins/create-add-in-parts-to-install-with-your-sharepoint-add-in). To solve your problem technically you should be able use remote provisioning patterns to push a Site Scoped Custom Action that lazy loads a script from ...


1

I had your same problem. SP.RequestExecutor() needs a SharePoint App environment to work. the ONLY path that solved my problem was to use URL Rewrite on IIS, editing also the jQuery ajax call.


Only top voted, non community-wiki answers of a minimum length are eligible