Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ravineshappypie opened this issue Jan 31, 2024 · 0 comments
Open

Comments

@ravineshappypie
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant