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
F12311693: D1303.id.diff
Tue, Oct 21, 20:55
F12311496: D1303.diff
Tue, Oct 21, 20:32
F12311382: D1303.id3345.diff
Tue, Oct 21, 20:29
F12311366: D1303.id3347.diff
Tue, Oct 21, 20:28
Unknown Object (File)
Mon, Oct 20, 16:04
Unknown Object (File)
Mon, Oct 20, 16:04
Unknown Object (File)
Mon, Oct 20, 14:18
Unknown Object (File)
Tue, Oct 14, 17:59
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