m-h-c-t / mh-hunt-helper

Tool to help collect data, estimate attraction, catch, and drop rates for a popular game.
https://www.mhct.win
MIT License
7 stars 14 forks source link

Set permissive CORS on unrestricted API endpoints #228

Closed vsong closed 1 year ago

vsong commented 1 year ago

Currently searchByItem.php and filters.php do not have a CORS header, preventing AJAX requests from the browser. This PR adds a helper script to set the CORS header on unrestricted API endpoints.