Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> API Rest and loopback error 403
Last modified: August 25, 2024

---

# [NSFW] API Rest and loopback error 403

 *  Resolved [ArtemisDraco](https://wordpress.org/support/users/veivneorul/)
 * (@veivneorul)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/api-rest-and-loopback-error-403/)
 * Hi there!
 * Since I migrated my sites to a new infrastructure (new servers all behind a NGINX
   proxy on separate servers) I’ve been having problems with the Rest API and cron.
 * The first site is characters.neodraco.fr. (Beware, this site can be NSFW)
 * In fact, I get these errors in the health status of the site:
    1. **The REST API encountered an unexpected result**
       REST API endpoint: [https://characters.neodraco.fr/wp-json/wp/v2/types/post?context=edit](https://characters.neodraco.fr/wp-json/wp/v2/types/post?context=edit)
       REST API response: (403) Forbidden
    2. **Your site could not complete a loopback request**
       The loopback request returned
       an unexpected http status code, 403, it was not possible to determine if this
       will prevent features from working as expected.
    3. **Unable to detect the presence of page cache**
       Unable to detect page cache 
       due to possible loopback request problem. Please verify that the loopback request
       test is passing. Error: Forbidden (Code: http_403)
 * Also, on another wordpress site (noaledet.fr) which is hosted on the same server
   under the same conditions, I get this kind of error with wp-cron.php: Unexpected
   HTTP response code: 404 (provided by the WP Crontrol plugin)
 * Information about characters.neodraco.fr :
 *     ```wp-block-code
       ` wp-core<br><br>version: 6.6.1<br>site_language: fr_FR<br>user_language: en_US<br>timezone: +02:00<br>permalink: /%postname%/<br>https_status: true<br>multisite: false<br>user_registration: 1<br>blog_public: 1<br>default_comment_status: open<br>environment_type: production<br>user_count: 1<br>dotorg_communication: true wp-paths-sizes<br><br>wordpress_path: /var/www/characters<br>wordpress_size: loading…<br>uploads_path: /var/www/characters/wp-content/uploads<br>uploads_size: loading…<br>themes_path: /var/www/characters/wp-content/themes<br>themes_size: loading…<br>plugins_path: /var/www/characters/wp-content/plugins<br>plugins_size: loading…<br>fonts_path: /var/www/characters/wp-content/uploads/fonts<br>fonts_size: loading…<br>database_size: loading…<br>total_size: loading… wp-dropins (2)<br><br>advanced-cache.php: true<br>object-cache.php: true wp-active-theme<br><br>name: Hestia Pro (hestia-pro)<br>version: 3.1.9<br>author: ThemeIsle<br>author_website: https://themeisle.com<br>parent_theme: none<br>theme_features: core-block-patterns, title-tag, post-thumbnails, automatic-feed-links, custom-logo, html5, custom-header, customize-selective-refresh-widgets, custom-background, themeisle-demo-import, align-wide, header-footer-elementor, starter-content, style, script, editor-color-palette, menus, editor-style, jetpack-portfolio, block-templates, align-full, widgets<br>theme_path: /var/www/characters/wp-content/themes/hestia-pro<br>auto_update: Disabled wp-themes-inactive (1)<br><br>Twenty Twenty-Four: version: 1.2, author: the WordPress team, Auto-updates disabled wp-mu-plugins (1)<br><br>Health Check Troubleshooting Mode: author: (undefined), version: 1.9.2 wp-plugins-active (21)<br><br>Age Gate: version: 3.4.1, author: Phil Baker, Auto-updates disabled<br>Akismet Anti-spam: Spam Protection: version: 5.3.3, author: Automattic - Anti-spam Team, Auto-updates disabled<br>Cloudflare: version: 4.12.8, author: Cloudflare, Inc., Auto-updates disabled<br>Duplicator: version: 1.5.10.2, author: Duplicator, Auto-updates disabled<br>FileBird Lite: version: 6.3.2, author: Ninja Team, Auto-updates disabled<br>Forminator: version: 1.34.1, author: WPMU DEV, Auto-updates disabled<br>Health Check & Troubleshooting: version: 1.7.1, author: The WordPress.org community, Auto-updates disabled<br>Image Placeholders: version: 1.1.1, author: WordPress Performance Team, Auto-updates disabled<br>IndexNow: version: 1.0.3, author: Microsoft Bing, Auto-updates enabled<br>iQ Block Country: version: 1.2.23, author: Pascal, Auto-updates disabled<br>Jetpack: version: 13.7, author: Automattic, Auto-updates disabled<br>Jetpack Boost: version: 3.4.7, author: Automattic - Jetpack Site Speed team, Auto-updates disabled<br>Kubio: version: 2.3.2, author: ExtendThemes, Auto-updates disabled<br>LightStart - Maintenance Mode, Coming Soon and Landing Page Builder: version: 2.6.11, author: Themeisle, Auto-updates disabled<br>NSFW (Not Safe For Work): version: 1.0, author: Zing-Ming, Auto-updates disabled<br>Orbit Fox Companion: version: 2.10.37, author: Themeisle, Auto-updates disabled<br>Otter – Page Builder Blocks & Extensions for Gutenberg: version: 3.0.2, author: ThemeIsle, Auto-updates disabled<br>Performance Lab: version: 3.4.0, author: WordPress Performance Team, Auto-updates disabled<br>Popup Box: version: 4.7.4, author: Popup Box Team, Auto-updates disabled<br>TranslatePress - Multilingual: version: 2.8.3, author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban, Auto-updates disabled<br>WP Mail SMTP: version: 4.1.1, author: WP Mail SMTP, Auto-updates disabled wp-media<br><br>image_editor: WP_Image_Editor_Imagick<br>imagick_module_version: 1692<br>imagemagick_version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org<br>imagick_version: 3.7.0<br>file_uploads: 1<br>post_max_size: 50M<br>upload_max_filesize: 50M<br>max_effective_size: 50 MB<br>max_file_uploads: 20<br>imagick_limits:<br>imagick::RESOURCETYPE_AREA: 244 MB<br>imagick::RESOURCETYPE_DISK: 2147483648<br>imagick::RESOURCETYPE_FILE: 6144<br>imagick::RESOURCETYPE_MAP: 2 GB<br>imagick::RESOURCETYPE_MEMORY: 1 GB<br>imagick::RESOURCETYPE_THREAD: 1<br>imagick::RESOURCETYPE_TIME: 9.2233720368548E+18<br>imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV<br>gd_version: 2.3.3<br>gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM<br>ghostscript_version: 10.02.1 wp-server<br><br>server_architecture: Linux 6.8.0-41-generic x86_64<br>httpd_software: Apache/2.4.58 (Ubuntu)<br>php_version: 8.3.6 64bit<br>php_sapi: apache2handler<br>max_input_variables: 1000<br>time_limit: 300<br>memory_limit: 512M<br>max_input_time: 60<br>upload_max_filesize: 50M<br>php_post_max_size: 50M<br>curl_version: 8.5.0 OpenSSL/3.0.13<br>suhosin: false<br>imagick_availability: true<br>pretty_permalinks: true<br>htaccess_extra_rules: false<br>current: 2024-08-25T22:52:15+00:00<br>utc-time: Sunday, 25-Aug-24 22:52:15 UTC<br>server-time: 2024-08-26T00:52:12+02:00 wp-database<br><br>extension: mysqli<br>server_version: 10.11.8-MariaDB-0ubuntu0.24.04.1<br>client_version: mysqlnd 8.3.6<br>max_allowed_packet: 16777216<br>max_connections: 151 wp-constants<br><br>WP_HOME: https://characters.neodraco.fr<br>WP_SITEURL: https://characters.neodraco.fr<br>WP_CONTENT_DIR: /var/www/characters/wp-content<br>WP_PLUGIN_DIR: /var/www/characters/wp-content/plugins<br>WP_MEMORY_LIMIT: 512M<br>WP_MAX_MEMORY_LIMIT: 256M<br>WP_DEBUG: false<br>WP_DEBUG_DISPLAY: true<br>WP_DEBUG_LOG: true<br>SCRIPT_DEBUG: false<br>WP_CACHE: true<br>CONCATENATE_SCRIPTS: undefined<br>COMPRESS_SCRIPTS: undefined<br>COMPRESS_CSS: undefined<br>WP_ENVIRONMENT_TYPE: Undefined<br>WP_DEVELOPMENT_MODE: undefined<br>DB_CHARSET: utf8mb4<br>DB_COLLATE: undefined wp-filesystem<br><br>wordpress: writable<br>wp-content: writable<br>uploads: writable<br>plugins: writable<br>themes: writable<br>fonts: not writable<br>mu-plugins: writable jetpack<br><br>site_id: 225757495<br>ssl_cert: No<br>time_diff: undefined<br>version_option: 13.7:1723147252<br>old_version: 13.6:1721034217<br>public: Public<br>master_user: #1 Veivneorul<br>is_offline_mode: off<br>is_offline_mode_constant: off<br>current_user: #1 Veivneorul<br>tokens_set: Blog User<br>blog_token: @GtKq1J%ZdlitDKwCf&1C6606XezN9CN<br>user_token: @QOJc2*gf8)kMWdB3lHlkuxcgRoL6vPl<br>version: 13.7<br>jp_plugin_dir: /var/www/characters/wp-content/plugins/jetpack/<br>plan: free<br>protect_header: ""<br>full_sync: {"started":"Thu, 22 Feb 2024 13:03:04 +0000","finished":"Thu, 22 Feb 2024 13:03:07 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":"0","sent":0,"finished":true,"last_sent":"~0"},"network_options":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[2],"network_options":true}}<br>sync_size: 1<br>sync_lag: 1 second<br>full_sync_size: undefined<br>full_sync_lag: 0 seconds<br>idc_urls: {"home":"https:\/\/characters.neodraco.fr","siteurl":"https:\/\/characters.neodraco.fr","WP_HOME":"https:\/\/characters.neodraco.fr","WP_SITEURL":"https:\/\/characters.neodraco.fr"}<br>idc_error_option: false<br>idc_optin: true<br>cxn_tests: All Pass. wp_mail_smtp<br><br>version: 4.1.1<br>license_key_type: lite<br>debug: No debug notices found.<br>lite_install_date: Nov 12, 2023 @ 5:22pm</code></pre>
   
   
   
       <p>And as for noaledet.fr : </p>
   
   
   
       <pre class="wp-block-code"><code>` wp-coreversion: 6.6.1site_language: fr_FRuser_language: fr_FRtimezone: +02:00permalink: /%postname%/https_status: truemultisite: falseuser_registration: 0blog_public: 1default_comment_status: openenvironment_type: productionuser_count: 1dotorg_communication: true wp-paths-sizeswordpress_path: /var/www/noaledetwordpress_size: loading…uploads_path: /var/www/noaledet/wp-content/uploadsuploads_size: loading…themes_path: /var/www/noaledet/wp-content/themesthemes_size: loading…plugins_path: /var/www/noaledet/wp-content/pluginsplugins_size: loading…fonts_path: /var/www/noaledet/wp-content/uploads/fontsfonts_size: loading…database_size: loading…total_size: loading… wp-active-themename: Personal CV Resume PRO (personal-cv-resume-pro)version: 1.0.5author: aThemeArtauthor_website: https://athemeart.com/parent_theme: nonetheme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-background, customize-selective-refresh-widgets, custom-logo, post-formats, custom-header, widgetstheme_path: /var/www/noaledet/wp-content/themes/personal-cv-resume-proauto_update: Désactivé wp-themes-inactive (3)Personal CV Resume: version: 1.1.4, author: aThemeArt, Mises à jour auto désactivéesTwenty Twenty-Four: version: 1.2, author: L’équipe WordPress, Mises à jour auto désactivéesTwenty Twenty-Three: version: 1.5, author: L’équipe WordPress, Mises à jour auto désactivées wp-plugins-active (10)Clever Fox: version: 26.2.8, author: nayrathemes, Mises à jour auto désactivéesCloudflare: version: 4.12.8, author: Cloudflare, Inc., Mises à jour auto désactivéesCodestar Framework: version: 2.1.8, author: Codestar, Mises à jour auto désactivéesElementor: version: 3.23.4, author: Elementor.com, Mises à jour auto désactivéesOrbit Fox Companion: version: 2.10.37, author: Themeisle, Mises à jour auto désactivéesOtter – Page Builder Blocks & Extensions for Gutenberg: version: 3.0.2, author: ThemeIsle, Mises à jour auto désactivéesRoyal Elementor Addons: version: 1.3.982, author: WP Royal, Mises à jour auto désactivéesWP Crontrol: version: 1.17.0, author: John Blackbourn, Mises à jour auto désactivéesWPForms Lite: version: 1.9.0.4, author: WPForms, Mises à jour auto désactivéesWP Mail SMTP: version: 4.1.1, author: WP Mail SMTP, Mises à jour auto désactivées wp-plugins-inactive (1)Duplicator: version: 1.5.10.2, author: Duplicator, Mises à jour auto désactivées wp-mediaimage_editor: WP_Image_Editor_Imagickimagick_module_version: 1692imagemagick_version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.orgimagick_version: 3.7.0file_uploads: 1post_max_size: 50Mupload_max_filesize: 50Mmax_effective_size: 50 Momax_file_uploads: 20imagick_limits:imagick::RESOURCETYPE_AREA: 244 Moimagick::RESOURCETYPE_DISK: 2147483648imagick::RESOURCETYPE_FILE: 6144imagick::RESOURCETYPE_MAP: 2 Goimagick::RESOURCETYPE_MEMORY: 1 Goimagick::RESOURCETYPE_THREAD: 1imagick::RESOURCETYPE_TIME: 9.2233720368548E+18imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUVgd_version: 2.3.3gd_formats: GIF, JPEG, PNG, WebP, BMP, XPMghostscript_version: 10.02.1 wp-serverserver_architecture: Linux 6.8.0-41-generic x86_64httpd_software: Apache/2.4.58 (Ubuntu)php_version: 8.3.6 64bitphp_sapi: apache2handlermax_input_variables: 1000time_limit: 300memory_limit: 256Mmax_input_time: 60upload_max_filesize: 50Mphp_post_max_size: 50Mcurl_version: 8.5.0 OpenSSL/3.0.13suhosin: falseimagick_availability: truepretty_permalinks: truehtaccess_extra_rules: falsecurrent: 2024-08-25T22:54:47+00:00utc-time: Sunday, 25-Aug-24 22:54:47 UTCserver-time: 2024-08-26T00:54:46+02:00 wp-databaseextension: mysqliserver_version: 10.11.8-MariaDB-0ubuntu0.24.04.1client_version: mysqlnd 8.3.6max_allowed_packet: 16777216max_connections: 151 wp-constantsWP_HOME: https://noaledet.frWP_SITEURL: https://noaledet.frWP_CONTENT_DIR: /var/www/noaledet/wp-contentWP_PLUGIN_DIR: /var/www/noaledet/wp-content/pluginsWP_MEMORY_LIMIT: 40MWP_MAX_MEMORY_LIMIT: 256MWP_DEBUG: falseWP_DEBUG_DISPLAY: falseWP_DEBUG_LOG: falseSCRIPT_DEBUG: falseWP_CACHE: falseCONCATENATE_SCRIPTS: undefinedCOMPRESS_SCRIPTS: undefinedCOMPRESS_CSS: undefinedWP_ENVIRONMENT_TYPE: IndéfiniWP_DEVELOPMENT_MODE: undefinedDB_CHARSET: utf8mb4DB_COLLATE: undefined wp-filesystemwordpress: writablewp-content: writableuploads: writableplugins: writablethemes: writablefonts: not writable wp_mail_smtpversion: 4.1.1license_key_type: litedebug: Aucune notification de débogage trouvée.lite_install_date: Juil 24, 2024 @ 3:25pm wpformsversion: 1.9.0.4lite: 23 juillet 2024 à 16h12upload_dir: Accessible en écrituretotal_forms: 2total_submissions: 3
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/api-rest-and-loopback-error-403/#post-17976725)
 * WordPress cron jobs try to use their own domain to call tasks. Check that the
   servers can resolve the domains that point to them to themselves. You should 
   be able to check this on the machines themselves by pinging them.
 *  Thread Starter [ArtemisDraco](https://wordpress.org/support/users/veivneorul/)
 * (@veivneorul)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/api-rest-and-loopback-error-403/#post-17977623)
 * Hi [@threadi](https://wordpress.org/support/users/threadi/) !
 * Thanks for your answer ! I resolved the issue.
   I’ve added two DNS entries to 
   my server’s hosts file so that the domain names point to the system’s loopback
   address and everything’s back in order.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[NSFW] API Rest and loopback error 403’ is closed to new replies.

## Tags

 * [API REST](https://wordpress.org/support/topic-tag/api-rest/)
 * [error 404](https://wordpress.org/support/topic-tag/error-404/)
 * [loopback](https://wordpress.org/support/topic-tag/loopback/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [ArtemisDraco](https://wordpress.org/support/users/veivneorul/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/api-rest-and-loopback-error-403/#post-17977623)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
