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
F7120513: D1303.id3345.diff
Mon, Apr 21, 01:17
Unknown Object (File)
Sat, Apr 19, 10:38
Unknown Object (File)
Sun, Apr 6, 02:55
Unknown Object (File)
Fri, Apr 4, 13:54
Unknown Object (File)
Fri, Apr 4, 02:12
Unknown Object (File)
Fri, Apr 4, 02:02
Unknown Object (File)
Fri, Apr 4, 01:57
Unknown Object (File)
Fri, Apr 4, 01:56
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