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 this problem.
Thanks in advance!
- SvenSieverdingBronze 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-MSCopper ContributorSvenSieverding
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..gulp clean && gulp build && gulp bundle --ship && gulp package-solution --ship
Try using this and see if it helps with the --ship flag
- MAP-MSCopper Contributor
spfx365 spfxblue1 FlaviaSPFX spfx-123_new1240
NicolasKheirallah ganeshsanap NikolinoDE CristinaMorales Simon Bromfield
Dear tech members, can you help me on about my SPFx highlighted issue?
- No need to tag us 🙂
Also you have not explained what the app does, where you are having the issue etc etc to make us being able to help- MAP-MSCopper Contributor
Thanks for your reply!!
Nothing advanced I did, it's default SPFx setup webpart. It works well in workbench but not in .sppkg deployed form.