Page MenuHomeDevCentral

Serve CORS open headers for api.nasqueron.org JSON files
ClosedPublic

Authored by dereckson on Feb 16 2018, 00:46.
Tags
None
Referenced Files
F56761099: D1303.diff
Mon, Nov 9, 02:29
F56614606: D1303.id3347.diff
Sat, Nov 7, 17:15
F56378197: D1303.diff
Thu, Nov 5, 14:38
F56373406: D1303.id3345.diff
Thu, Nov 5, 13:35
F56130320: D1303.id.diff
Tue, Nov 3, 04:51
F56083837: D1303.id3347.diff
Mon, Nov 2, 17:09
F56005394: D1303.id3345.diff
Mon, Nov 2, 02:08
Unknown Object (File)
Sun, Nov 1, 03:55
Subscribers
None

Details

Summary

As the API is meant to be consumed by other .nasqueron.org and external sites,
this change serves wide open headers to https://api.nasqueron.org/*.json.

An immediate benefit is to be able to get rid of the proxy_pass configuration
in www.nasqueron.org previously used to access sites.json without CORS issue,
a kludge introduced as the same time than commit cd026d254f2fe.

Test Plan
  • OPTIONS header returns well a 204 and not a 405
  • CORS works with D1304

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable