I am writing a Rails web application that presents OurAirports airport data to the user. One convenience I provide is a link to the FlightRadar24 web site for that airport.
I construct a URL for that airport, e.g. "https://www.flightradar24.com/airport/JFK" and then present a normal hyperlink to it:
<td align="center">
<%= link_to 'FR 24', airport.flight_radar_24_link, target: '_blank' %>
</td>
This works fine when I click the link on the production server on Heroku, but when I run the web server locally I get an HTTP error:
This page isn’t working
If the problem continues, contact the site owner.
HTTP ERROR 418`
I think this has something to do with CSRF but I can't find anything definitive.
The source code is at https://github.com/keithrbennett/our_airports in case that helps.
Can anyone tell me what is going on and how I can resolve it?