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
F24800478: D1303.diff
Wed, Mar 11, 07:37
F24789213: D1303.id3345.diff
Tue, Mar 10, 19:11
F24780229: D1303.diff
Tue, Mar 10, 09:52
Unknown Object (File)
Mon, Mar 9, 10:48
Unknown Object (File)
Mon, Mar 9, 06:37
Unknown Object (File)
Sun, Mar 8, 15:02
Unknown Object (File)
Sun, Mar 8, 09:54
Unknown Object (File)
Sun, Mar 8, 07:23
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