Ok, thank you, it seems that the CORS message only occurs when an endpoint is missing, so maybe it has nothing to do with CORS.
I found the modules/rest.conf and CORS is allowed.
So my second guess is that something is wrong between my angular conf and my dspace backend conf local.cfg.
Here are the two files.
Everything else seems to be working perfectly.
Angular conf in add-ons/angular-tools/environment.dev.js
[root@snp-dev-exd001 /opt/DSpace-Docker-Images]# more add-ons/angular-tools/environment.dev.js
module.exports = {
rest: {
ssl: false,
host: '
snp-dev-exd001.snump.in.cloe.education.gouv.fr',
port: 8080,
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: '/rest'
}
};
DSpace backend conf :
root@57f0be4df5e7:/dspace/config# more local.cfg
# ------------------------------------------------------------------------
# This file contains the localized properties for published DSpace images.
# See
https://github.com/DSpace-Labs/DSpace-Docker-Images for usage information.
# ------------------------------------------------------------------------
dspace.dir = /dspace
db.url = jdbc:postgresql://dspacedb:5432/dspace
dspace.hostname = localhost
dspace.baseUrl =
http://localhost:8080/serversolr.server=
http://dspacesolr:8983/solrroot@57f0be4df5e7:/dspace/config#
Modified section of docker-compose.yml (should I modify the override.yml?) :
dspace:
image: "${DOCKER_OWNER:-dspace}/dspace:${DSPACE_VER:-dspace-6_x-jdk8-test}"
container_name: dspace
environment:
# - JAVA_OPTS=
# The following memory allocation will be appended to any JAVA_OPTS settings
# - JAVA_MEM=-Xmx2500m
- SCRIPTVER=6
- DSPACE_INSTALL=/dspace
- ADMIN_EMAIL=${
ADMIN_EMAIL:-ad...@education.gouv.fr}
- ADMIN_PASS=${ADMIN_PASS:-bns-2020}
- ADMIN_FNAME=${ADMIN_FNAME:-AdminFirst}
- ADMIN_LNAME=${ADMIN_LNAME:-AdminLast}
- AIPZIP=${AIPZIP:-
https://github.com/DSpace-Labs/AIP-Files/raw/master/dogAndReport.zip}
# export SKIPAIP=Y
- SKIPAIP=${SKIPAIP:-N}
# Number of sec to wait before attempting AIP ingest
- AIPWAIT=5
# Number of sec to wait before attempting to start tomcat
- DBWAIT=0
# Env vars with double underbars in names will be replaced with periods and written to local.cfg
# The defaul values for local.cfg will be provided here
# __D__ -> -
# __P__ -> .
- dspace__P__dir=/dspace
- db__P__url=jdbc:postgresql://dspacedb:5432/dspace
- dspace__P__hostname=
snp-dev-exd001.snump.in.cloe.education.gouv.fr - dspace__P__baseUrl=
http://snp-dev-exd001.snump.in.cloe.education.gouv.fr:8080 - dspace__P__name=DSpace Started with Docker Compose