next.js/examples/api-routes-cors/pages/index.tsx
index.tsx10 lines294 B
export default function Index() {
  return (
    <p>
      To test the CORS route, open the console in a new tab on a different
      domain and make a POST / GET / OPTIONS request to <b>/api/cors</b>. Using
      a different method from those mentioned will be blocked by CORS
    </p>
  );
}
Quest for Codev2.0.0
/
SIGN IN