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
F11662119: D1303.id.diff
Sun, Sep 7, 09:28
F11656070: D1303.id.diff
Sat, Sep 6, 16:28
Unknown Object (File)
Sat, Sep 6, 11:02
Unknown Object (File)
Fri, Sep 5, 04:51
Unknown Object (File)
Tue, Sep 2, 03:49
Unknown Object (File)
Tue, Sep 2, 01:40
Unknown Object (File)
Sat, Aug 30, 02:13
Unknown Object (File)
Tue, Aug 26, 22:57
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