Skip to content

Commit f58035d

Browse files
Added api url to allowed origins.
1 parent 202836a commit f58035d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const nextConfig: NextConfig = {
2222
//basePath: //isGithubPages ? `/${repoName}` : '',
2323
//assetPrefix: //isGithubPages ? `/${repoName}/` : '',
2424

25-
allowedDevOrigins: ['https://new.codebuilder.org', 'https://new.codebuilder.org:443', 'https://dev.codebuilder.org', 'https://dev.codebuilder.org:443'], // resolves the CORS warning
25+
allowedDevOrigins: ['https://api.codebuilder.org', 'https://new.codebuilder.org', 'https://new.codebuilder.org:443', 'https://dev.codebuilder.org', 'https://dev.codebuilder.org:443'], // resolves the CORS warning
2626

2727
// Note: If you are using next/image, you may need to add an
2828
// unoptimized: true flag here if you are not using a custom loader.

0 commit comments

Comments
 (0)