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
F10933515: D1303.diff
Tue, Aug 5, 19:27
F10932133: D1303.id3345.diff
Tue, Aug 5, 16:24
F10930019: D1303.id3347.diff
Tue, Aug 5, 14:21
F10926264: D1303.id.diff
Tue, Aug 5, 11:50
F10923096: D1303.id3347.diff
Tue, Aug 5, 09:27
Unknown Object (File)
Mon, Aug 4, 12:20
Unknown Object (File)
Mon, Jul 28, 21:15
Unknown Object (File)
Mon, Jul 28, 03:53
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 Passed
Unit
No Test Coverage
Branch
cors (branched from master)
Build Status
Buildable 2061
Build 2309: arc lint + arc unit