Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topology not saved when using, Nginx - Enable the HTTPONLY and SECURE headers #196

Open
BadiaJunkie opened this issue Dec 7, 2022 · 2 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@BadiaJunkie
Copy link

Hi,

I m using netbox-topology-views and it worked fine untill i enabled the HTTPONLY and SECURE headers for NGINX, as soon as i add proxy_cookie_path / "/; HTTPOnly; Secure"; to my netbox nginx config the saving option stopped working the same occurs when i use the set_cookie_flag * HttpOnly secure;

Anyone any idea how i can fix the issue ? I really would like the HTTPONLY and SECURE headers option being enabled and still be able to save the topology.

@mattieserver
Copy link
Collaborator

Can you check in the browser tools with error you get? (in the network tab or console).

@mattieserver mattieserver self-assigned this Dec 9, 2022
@mattieserver mattieserver added the type: bug A confirmed report of unexpected behavior in the application label Dec 9, 2022
@BadiaJunkie
Copy link
Author

This is what i get when moving a icoon and when it's not being saved:

Console
msgport.js:70 {"notify":"init_tab"}
app.js:23 PATCH https://netbox.corp.rijnvallei.nl/api/plugins/netbox_topology_views/save-coords/save_coords/ 403 (Forbidden)
(anonymous) @ app.js:23
ne.emit @ app.js:1
generateClickEvent @ app.js:23
onDragEnd @ app.js:23
(anonymous) @ app.js:23
e.emit @ app.js:1
r @ app.js:1
e.emit @ app.js:1
t.emit @ app.js:1
e.tryEmit @ app.js:1
e.recognize @ app.js:1
e.recognize @ app.js:1
ur @ app.js:1
t.handler @ app.js:1
domHandler @ app.js:1
app.js:23 403

Network

Device
GET /api/plugins/netbox_topology_views/save-coords/save_coords/
HTTP 405 Method Not Allowed
Allow: PATCH, OPTIONS
Content-Type: application/json
Vary: Accept

{
"detail": "Method "GET" not allowed."

When i do without the Enable the HTTPONLY and SECURE setting it works fine.

@dreng dreng added the status: accepted This issue has been accepted for implementation label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants