Posts by ed_santana • 13 points
3 posts
-
0
votes0
answers16
viewsQ: Cors error with socket.io: No 'Access-Control-Allow-Origin' header is present on the requested Resource
I have an API with a running socket.io instance, configured as follows: const sock = socketIo(server /* servidor express */, { origins: [CONFIG.frontend /* variavel que contem a url do front */],…
-
1
votes1
answer41
viewsQ: How do I check if a file exists on my hard drive using php? (Linux)
I have a php application that will read return files from the database, for this, I need to know if the file exists on the system hard drive. I tried it this way:…
-
0
votes1
answer81
viewsA: Checkout field does not appear in the order object
To solve this, you can use the function get_post_meta, for this, use the following syntax: get_post_meta( $order_id, '_billing_cpf', true ), this will return the value inserted in the input!…