Open ravineshappypie opened 10 months ago
Hi
I deployed in us-east-1 reason, Front page is working fine. But after login, I am not able to see any API, while I have putted the api.
In console many error is showing like:
I did some changes in "dev-portal-DevPortalLambdaFunction-fVvFzmSMwWTL" lambda function by assumption it may be CORS issue.
replaced app.use(cors())
By
app.use(cors({ origin: '', // Allow any origin methods: 'OPTIONS,POST,GET', allowedHeaders: 'Content-Type' })); app.options('', cors()); // Enable preflight requests for all routes
But still getting the issue. Please provide some resolution on this.
Hi
I deployed in us-east-1 reason, Front page is working fine. But after login, I am not able to see any API, while I have putted the api.
In console many error is showing like:
I did some changes in "dev-portal-DevPortalLambdaFunction-fVvFzmSMwWTL" lambda function by assumption it may be CORS issue.
replaced app.use(cors())
By
app.use(cors({ origin: '', // Allow any origin methods: 'OPTIONS,POST,GET', allowedHeaders: 'Content-Type' })); app.options('', cors()); // Enable preflight requests for all routes
But still getting the issue. Please provide some resolution on this.