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

Lua function 'cors': runtime error: /etc/haproxy/cors.lua:81: attempt to concatenate a nil value #24

Closed
knnat opened this issue Mar 5, 2021 · 3 comments

Comments

@knnat
Copy link

knnat commented Mar 5, 2021

Version 2.2
See this error on journalctl log:

Mar 04 22:54:12 sim haproxy[1194]: [ALERT] 062/225412 (1199) : Lua function 'cors': runtime error: /etc/haproxy/cors.lua:81: attempt to concatenate a nil value (local 'origin') from /etc/haproxy/cors.lua:81 global 'preflight_request_ver2', /etc/haproxy/cors.lua:123 C function line 102.

@NickMRamirez
Copy link
Collaborator

NickMRamirez commented Mar 5, 2021

Thanks for reporting this. Can you give some more details?

  • Which version of HAProxy
  • Sample of HAProxy config
  • Is the HTTP request constructed in any special way? (e.g. curl, if so, what's the command)

Possibly related to #23 and #18

@NickMRamirez
Copy link
Collaborator

I am not seeing this error when I test. If possible, please give more details about how you're getting the error.

@NickMRamirez
Copy link
Collaborator

I've reproduced it. If you send an OPTIONS request that is not a preflight request. I will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants