Tuesday, 22 April 2025

Traffic Parrot 5.53.0 released, what's new?

We have just released version 5.53.0. Here is a list of the changes that came with the release:

Features

  • Added searchable dropdown to scenario selection in the UI for better usability

Fixes

  • Library upgrades to fix OWASP issues

Changes

  • Increased the minimum Java runtime requirement from Java 8 to Java 17. We will continue to support Java 8 for all customers that have not yet upgraded.
  • Upgraded Jetty server from v9 to v12

Thursday, 17 April 2025

How do I set up an OPTIONS request in Traffic Parrot?

 "UI is making an OPTIONS request but the mock doesn’t seem to be returning the right headers resulting in CORS error. I tried changing port , URL, nothing helped, only the same Allow, Server response headers were being sent back." - Staff Engineer working for a US university.

By default, trafficparrot.properties has a flag set:
trafficparrot.http.optionsResponse.enabled=true

This tells Traffic Parrot to return a default automatic OPTIONS response with the "allow" header set only, for any defined mapping.


If you set the flag to false:

trafficparrot.http.optionsResponse.enabled=false

It will allow you to define your own custom OPTIONS response instead.