What is the correct JSON content type?

I've been messing around with JSON for some time, just pushing it out as text and it hasn't hurt anybody (that I know of), but I'd like to start doing things properly. I have seen so many...

WCF Error "This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case"

I'm having a problem using a WCF call from a Windows service to my WCF service running on my web server. This call has been working for a number of weeks, but then stopped working all of a...

Sql string translation

I'm looking for a simple (ideally inline) tsql statement to implement the following translations. We have reference number field in our data that we wish to obscure. It's in the format of AAA1234,...

Creation of REST service in SAP ECC 6.0 environment

we are using SAP ECC 6 as backend. our requirment is we need to call BAPI/RFC from the browsers and mobile devices. our constraint is we do not want to open the ports of the ECC environment. The...

SOAP vs REST (differences)

I have read articles about the differences between SOAP and REST as a web service communication protocol, but I think that the biggest advantages for REST over SOAP are: REST is more dynamic, no...

Disable direct requests to REST API

I'm making a REST backend for private use of our frontend, they will both be in the same server. The problem is that I'm worried about security issues, I don't want a attacker to use the API...

POST request to Spring server returns 403 forbidden

I have set up my spring server to respond to a POST request containing a Message object as: @RequestMapping(value = "/signup", method = RequestMethod.POST, consumes = "application/json") ...

How to apply Spring Data projections in a Spring MVC controllers?

Is it possible to specify projection when calling data repository method directly? Here's repository code - note I would not like to expose it via REST, instead I would like to be able to call it...

Failed to create WebSocket connection when Spring Security is on

Im using Java WebSocket client that subscribe to a Spring-Boot based server application. Everything worked just fine, but after adding support for Spring Security in order to authenticate and...

Filtering entity fields dynamically in Spring Data rest json Response

Hi I have a requirement to dynamically ignore entity fields in spring data rest response [I know they can be done in a static way by using @JsonIgnore annotation] ideally based on a spring...

Authorisation in microservices - how to approach domain object or entity level access control using ACL?

I am currently building microservices based system on java Spring Cloud. Some microservices use PostgreSQL and some of them MongoDB. REST and JMS is used for communication. The plan is to use SSO...

Google Admin SDK - Service account can't access resource

I've created Service Account client via console.developers.google.com. Generated keys, .p12 cert, enabled DwD, and so ... Then I've continued as describer in Admin API references. (HTTP/REST...

curl: how to use Kerberos instead of NTLM authentication on Windows?

I'm trying to connect to a Livy REST service under Kerberos security. On Linux CentoS curl works fine with negotiate, after receiving a Kerberos kinit ticket the connection through curl...

SPFx REST Security Tokens

Hey SPFx devs I am encountering some issues with security tokens in a small SPA I have developed on top of the SPFx framework which interacts with data in SharePoint online. If the app is left...

403 Forbibben in API Rest Call

I am writing a small program in java which makes a rest call to an endpoint to verify a reference id. I have written this program in two different ways and each work when I run it from my PC but...

How to fix the error cause when execute manage.py runserver command in Django?

I recently join with ongoing project which has done using Django framework and I am new to this framework. This code is not mine. When I run python manage.py runserver command I receive following...

How to disable/ ignore @PreAuthorize in a Spring Boot application

I have a Spring Boot app that provides REST APIs. All the API are secured with Spring Security. I also have added method authorization using @PreAuthorize annotation. For local development I would...

CodeIgniter 4... documentRoot is not in public... htaccess is not working

I am starting to dabble in CodeIgniter 4. Completed a simple app. On local, I have the documentroot setup to be /public/ where as on the product hosting environment, I am unable to set the...

Firebase Id Token from Flutter App is not verified on the REST server

I want support social login with firebase auth. But I want to keep user's detailed profiles in my own RDB . I thought that after user signed in with social account I could get encoded token which...

Django: check_password returns false, even if the password was saved as hash

I am using Django==2.1.5 My goal is a simple DRF based create user and login, but instead of login with username (and pw) i want to login with the email address+pw. Therefore I saved...

Secure method of spring data rest repository

I am currently developping a REST API server based on Spring Boot. Thanks to Spring Data Rest, the 10-ish entities can easily have their own controller via a simple repository...

How to block access to my API from Postman/Other API's/etc.. (Spring Boot)

I'm developping a Rest Api with Spring Boot and Spring Security. I have both public and private areas and i used Spring Security for authentication (for the private area). The problem is that i...

How to make WebFilter work in a non-WebFlux/non-reactive Spring Boot application?

I'm trying to solve this: https://stackoverflow.com/questions/63707296/how-to-rewrite-urls-with-spring-boot-via-rest-controllers/63708072 by creating some kind of "filter" which would be applied...

How to disable tax being charged on shipping in WooCommerce?

I have configured my Woo-based shop to NOT charge any taxes on shipping: I do have a table for Zero Tax rate configured: however it still does during the checkout: as is apparent in the...

Oracle 19C - Corrupt webservice response / corrupt file download

We are using Oracle 19C and call a webservice that mainly returns a base 64 encoded PDF. At one of our customers sites we get the first approximately 32k Bytes response the way it should be, and...

How to dynamically change client_secret in Spring Security with Spring boot

Now I have this configuration: spring: security: oauth2: client: registration: sbbol: client-id: zdcffffff client-secret: ffffffffff ...

Hostname/IP does not match certificate's altnames

I'm working on a REST API that itself makes requests to another REST API -- basically, it provides a more convenient interface and also some extra functionality. Let's call my REST API X and the...

Spring Cloud Gateway Preflight Cors Error with Angular

I'm trying to use spring cloud gateway with spring security and trying to call the rest API through angular but I'm getting following error Access to XMLHttpRequest at...

Composer install suddenly fails because of symfony/flex

I'm having this problem out of the blue. I didn't change anything in composer and it ran just fine up until last week. Now when I run composer install I get this at the end: Generating autoload...

What's the alternative for Spring RMI? (since it's deprecated)

Spring seems to be deprecating it's rmi: As of Spring Framework 5.3, support for several remoting technologies is now deprecated for security reasons and broader industry support. Supporting...