Skip to content

Commit

Permalink
docs: Improved wording of certain elements and fixed some more spelli…
Browse files Browse the repository at this point in the history
…ng mistakes

Co-authored-by: Dennis Ploeger <[email protected]>
  • Loading branch information
dragmine149 and dploeger committed Dec 14, 2024
1 parent c48d03c commit e3abab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/godottpd/http_server.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## A routable HTTP server for Godot
##
## Controlls a back-end localhost server.
## Provides a web server with routes for specific endpoints
## [br]Example usage:
## [codeblock]
## var server := HttpServer.new()
Expand Down Expand Up @@ -271,8 +271,8 @@ func _path_to_regexp(path: String, should_match_subfolders: bool = false) -> Arr

## Enable CORS (Cross-origin resource sharing) which only allows requests from the specified servers
## [br]
## [br][param allowed_origins] - The origins that area allowed to be access from this sesrver
## [br][param access_control_allowed_methods] - The methods that are allowed to be sent
## [br][param allowed_origins] - The origins that are allowed to be accessed from this server
## [br][param access_control_allowed_methods] - The methods that are allowed to be used
## [br][param access_control_allowed_headers] - The headers that are allowed to be sent
func enable_cors(allowed_origins: PackedStringArray, access_control_allowed_methods : String = "POST, GET, OPTIONS", access_control_allowed_headers : String = "content-type"):
_allowed_origins = allowed_origins
Expand Down

0 comments on commit e3abab0

Please sign in to comment.