awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
932 stars 402 forks source link

No apis published, showing too many error in console after login #644

Open ravineshappypie opened 10 months ago

ravineshappypie commented 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:

image

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.