Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit bc485a1

Browse files
committed
Fixed yet another CORS problem.
1 parent 9510890 commit bc485a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/scala/org/codeoverflow/chatoverflow/framework/manager/PluginManagerImpl.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import scala.collection.mutable.ListBuffer
1515
*/
1616
class PluginManagerImpl(pluginInstanceName: String, logOutputOnConsole: Boolean) extends PluginManager with WithLogger {
1717

18+
// TODO: Add log datetime
1819
private val logMessages = new ListBuffer[String]
1920

2021
/**

src/main/scala/org/codeoverflow/chatoverflow/ui/web/JsonServlet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class JsonServlet extends ScalatraServlet with JacksonJsonSupport with
2424
response.setHeader(
2525
"Access-Control-Allow-Headers", request.getHeader("Access-Control-Request-Headers"))
2626
response.setHeader(
27-
"Access-Control-Allow-Methods", request.getHeader("Access-Control-Allow-Methods"))
27+
"Access-Control-Allow-Methods", request.getHeader("Access-Control-Request-Method"))
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)