Forum Discussion
MAP-MS
Sep 05, 2023Copper Contributor
login.microsoftonline.com refused to connect with SPFx
Facing issue: 'login.microsoftonline.com refused to connect'. It faced while deploy .sppkg file to Site. Solution works fine with workbench, but not works when deploy. Please suggest solution for th...
SvenSieverding
Sep 11, 2023Bronze Contributor
Hi MAP-MS ,
you said that error occurs while deploying to your site. Is that error happening while you deploy the file or after you deployed and activated your solution?
Where exactly are you deploying your sppkg file?
To a Site Collection App Catalog (http://yourtenant.sharepoint.com/sites/yoursite/AppCatalog/Forms/AllItems.aspx)?
Or to the tenant App Catalog (https://yourtenant.sharepoint.com/sites/appcatalog/_layouts/15/tenantAppCatalog.aspx)
Best Regards,
Sven
MAP-MS
Sep 19, 2023Copper Contributor
SvenSieverding
I am deploying to https://yourtenant.sharepoint.com/sites/appcatalog....
I am getting error in deployed version only, not on workbench. Workbench works as expected..
I am deploying to https://yourtenant.sharepoint.com/sites/appcatalog....
I am getting error in deployed version only, not on workbench. Workbench works as expected..
- Sep 19, 2023
gulp clean && gulp build && gulp bundle --ship && gulp package-solution --ship
Try using this and see if it helps with the --ship flag
- MAP-MSSep 20, 2023Copper Contributor
NicolasKheirallah & SvenSieverding
Thanks, Nic and Sven for your valuable reply!
I found the solution by applying isDomainIsolated = false. It's strange but it works for me.
Thanks again!!