Ajax -URL turns from http into https in Outlook Add in

Mohammed Dimashki 0 Reputation points
2023-10-25T13:38:20.5733333+00:00

Hello,
i am trying to build Add in for outlook using Visual studio .
through this Add in useres should be able to retreive list elements from onPrem Sharepoint Server .
the sahrepoint server is configured as http.
when i build the project and send the http ajax request to SP server to retreive the data. the ajax url turns into https automaticlly.
is there anyway to stop the change from http to https. the SP server is only reachable via http .

thank you

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,271 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,209 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 32,476 Reputation points Microsoft Vendor
    2023-10-26T06:17:47.8433333+00:00

    Hi @Mohammed Dimashki,

    Per my research, you could configure http to https redirection in AAMs and IIS. First configure your HTTPS URL in Default-Zone. Add an additional "Internal URL" and map it to the "Default" Zone. Should look like this:

    AAM

    Then add both the HTTP and the HTTPS binding to your IIS-Website

    IIS-Bindings


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.