Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about javalin

Read more about javalin

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - javalin

Disabling Options method in Javalin 3.0

We are using Javalin in our kotlin application and we want to disable the options method from the handlers, We want to keep only get,post methods. below is the config code of Javalin val app = Javalin...
test-img

Maverick

api

kotlin

handler

request-headers

javalin

Votes: 0

Answers: 1

Latest Answer

Consider adding an explicit handler for this method with default 405 response: app.options("/*") { throw MethodNotAllowedResponse() }
test-img

Михаил Нафталь

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved