Skip to content

Commit

Permalink
cors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Apr 10, 2024
1 parent 666880a commit 6d5c242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/indexnow/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fetch('https://api.indexnow.org/IndexNow', {

let result = {msg:"submitted",indexdata: await indexit(),host : host, apiKey: apiKey,keyLocation: keyLocation, url: urlToSubmit};
// return Response.json()
return new NextResponse(result, {
return NextResponse.json(result, {
status: 200,
headers: {
'Access-Control-Allow-Origin': '*',
Expand Down

0 comments on commit 6d5c242

Please sign in to comment.