sonata-nfv / son-gkeeper

SONATA's Service Platform Gatekeeper
http://www.sonata-nfv.eu
Apache License 2.0
2 stars 18 forks source link

OPTIONS in /api/v2/records/services #633

Closed felipevicens closed 7 years ago

felipevicens commented 7 years ago

Hello @jbonnet, I think we need to implement OPTIONS in the gkapi for the route /api/v2/records/services because the BSS can't show the network services instances.

santiagordguez commented 7 years ago

Hi @jbonnet , @felipevicens:

OPTIONS http://sp.int3.sonata-nfv.eu:32001/api/v2/records works fine. Response 200:

Access-Control-Allow-Headers →Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With Access-Control-Allow-Methods →POST,PUT Access-Control-Allow-Origin →* Content-Length →0 Content-Type →text/html;charset=utf-8 X-Content-Type-Options →nosniff X-Frame-Options →SAMEORIGIN X-XSS-Protection →1; mode=block

but

OPTIONS http://sp.int3.sonata-nfv.eu:32001/api/v2/records/services fails. Response 404:

Content-Length →73 Content-Type →application/json X-Cascade →pass X-Content-Type-Options →nosniff

jbonnet commented 7 years ago

Please retest, solved by PR #634

felipevicens commented 7 years ago

It is working 🆗