function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vasu_vVasu_v 

Display angular project in salesforce lightning

Hi Team,

I have the existing angular form , I want display them in salesforce.
I have uploaded the angular files in static resuorces and written below component but i'm not getting the results.
<aura:component access="global" implements="flexipage:availableForAllPageTypes" >
      <lightning:container aura:id="AngularApp"
                             src="{!$Resource.AngularTest + '/index.html'}" /> 
</aura:component>

Getting this error in console : 
Access to XMLHttpRequest at 'https:proxy?_=1608281927787' 
(redirected from 'https:services/proxy?_=1608281927787') 
from origin 'https:venky.lightning.force.com' 
has been blocked by CORS policy: Response to preflight request doesn't pass 
access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Anyone have any idea how to disply the angular forms in SFDC lightning, Angular files uploaded in SFDC static resource
AbhishekAbhishek (Salesforce Developers) 
https://stackoverflow.com/questions/53298478/has-been-blocked-by-cors-policy-response-to-preflight-request-doesn-t-pass-acce

I suspect your query is answered here.


For further reference you can check this too,
 


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Vasu_vVasu_v
Hi Abhishek, 

Thanks for the reply, Actually i'm not using any API call in my angualar, I'm just trying to display the page but i'm getting this error.
1. Created the angular file
2. build the new project
3. added to zip file after building the angualr project
4. uploaded to the zip file into static resource
5. using lightining container i have called the static resource file.

above are the steps i have done, but getting the error,  not sure above steps are correct or not.
AbhishekAbhishek (Salesforce Developers) 
Then it's needed investigation please reach salesforce support.